diff --git a/lib/ui/screens/first_screen.dart b/lib/ui/screens/first_screen.dart index c180a36b267fc810c0d37ac4cdf981336c50b4c4..4a40c4a598ebdf749bf6b277aead98a3e82efcf4 100644 --- a/lib/ui/screens/first_screen.dart +++ b/lib/ui/screens/first_screen.dart @@ -29,9 +29,11 @@ class _FirstScreenState extends State<FirstScreen> { flushbarPosition: FlushbarPosition.TOP, onStatusChanged: (FlushbarStatus? status) { if (status == FlushbarStatus.DISMISSED) { - setState(() { - _showFlushbar = false; - }); + if (mounted) { + setState(() { + _showFlushbar = false; + }); + } } }, ).show(context);