From 4129033042ac7a1ed45a831f3ccc9b6dc3e35ebc Mon Sep 17 00:00:00 2001 From: Calcitem Date: Thu, 2 Sep 2021 00:48:29 +0800 Subject: [PATCH] Clear snackbars when start new game --- src/ui/flutter_app/lib/widgets/game_page.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/flutter_app/lib/widgets/game_page.dart b/src/ui/flutter_app/lib/widgets/game_page.dart index 38c39e08..989abacb 100644 --- a/src/ui/flutter_app/lib/widgets/game_page.dart +++ b/src/ui/flutter_app/lib/widgets/game_page.dart @@ -619,6 +619,7 @@ class _GamePageState extends State if (mounted) { showTip(S.of(context).gameStarted); if (Config.screenReaderSupport) { + ScaffoldMessenger.of(context).clearSnackBars(); showSnackBar(context, S.of(context).gameStarted); } }