mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
Fixups (#2310)
Fixes #2301 --------- Co-authored-by: Brett Morgan <brett.morgan@gmail.com> Co-authored-by: Brett Morgan <brettmorgan@google.com>
This commit is contained in:
@@ -92,6 +92,7 @@ class _PerformancePageState extends State<PerformancePage> {
|
||||
var snackBar = const SnackBar(
|
||||
content: Text('Main Isolate Done!'),
|
||||
);
|
||||
if (!context.mounted) return;
|
||||
ScaffoldMessenger.of(context).showSnackBar(snackBar);
|
||||
});
|
||||
|
||||
@@ -106,6 +107,7 @@ class _PerformancePageState extends State<PerformancePage> {
|
||||
var snackBar = const SnackBar(
|
||||
content: Text('Secondary Isolate Done!'),
|
||||
);
|
||||
if (!context.mounted) return;
|
||||
ScaffoldMessenger.of(context).showSnackBar(snackBar);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user