Migrate Scaffold SnackBars in the framework to ScaffoldMessenger (#67946)
This commit is contained in:
@@ -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),
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user