Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Migrate SnackBar methods to ScaffoldMessenger #343

Merged
merged 6 commits into from
Oct 12, 2020
Merged

Conversation

Piinks
Copy link
Contributor

@Piinks Piinks commented Oct 12, 2020

cc/ @perclasson and @rami-a contacts for https://github.com/flutter/tests/blob/master/registry/flutter_gallery.test

flutter/flutter#66504 introduced the ScaffoldMessenger widget, which allows for persistent SnackBars across Scaffolds, and easier management of asynchronous SnackBars. The original SnackBar methods in Scaffold are going to be deprecated. Test failures were identified in this repository in flutter/flutter#67947, so this PR is intended to migrate to the new API.

Full Migration Guide:
flutter/website#4527

References:
flutter/flutter#62921
flutter/flutter#57218

Copy link
Contributor

@rami-a rami-a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, you'll have to run flutter pub run grinder update-code-segments to update the demo code snippets and get the CI to pass (see https://github.com/flutter/gallery#generating-highlighted-code-segments for more info).

lib/demos/material/dialog_demo.dart Outdated Show resolved Hide resolved
lib/demos/material/dialog_demo.dart Outdated Show resolved Hide resolved
@Piinks
Copy link
Contributor Author

Piinks commented Oct 12, 2020

Thanks for the review @rami-a :)

@Piinks Piinks merged commit 17437de into flutter:master Oct 12, 2020
perclasson pushed a commit to perclasson/gallery that referenced this pull request Oct 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants