diff --git a/lib/features/home/views/layout.dart b/lib/features/home/views/layout.dart index 82d79f4..fc84e57 100644 --- a/lib/features/home/views/layout.dart +++ b/lib/features/home/views/layout.dart @@ -41,6 +41,7 @@ class _LayoutState extends State { // Received changes in available connectivity types! if (result.contains(ConnectivityResult.none)) { if (!mounted) return; + ScaffoldMessenger.of(context).hideCurrentSnackBar(); ScaffoldMessenger.of(context).showSnackBar( const SnackBar( duration: Duration(days: 30), @@ -53,6 +54,8 @@ class _LayoutState extends State { } if (!result.contains(ConnectivityResult.none)) { if (!mounted) return; + + ScaffoldMessenger.of(context).hideCurrentSnackBar(); ScaffoldMessenger.of(context).showSnackBar( const SnackBar( showCloseIcon: true,