Migrate Scaffold SnackBars in the framework to ScaffoldMessenger (#67946)

This commit is contained in:
Kate Lovett
2020-10-14 13:12:03 -07:00
committed by GitHub
parent 767fb98a7b
commit cd60da784f
15 changed files with 79 additions and 96 deletions

View File

@@ -187,7 +187,7 @@ class MotionEventsBodyState extends State<MotionEventsBody> {
}
void showMessage(BuildContext context, String message) {
Scaffold.of(context).showSnackBar(SnackBar(
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
content: Text(message),
duration: const Duration(seconds: 3),
));