Fixed bug with playing confetti on cancel button
This commit is contained in:
@@ -453,6 +453,8 @@ class _ActiveGameViewState extends State<ActiveGameView> {
|
||||
),
|
||||
);
|
||||
|
||||
if (round == -1) return;
|
||||
|
||||
if (widget.gameSession.isGameFinished && context.mounted) {
|
||||
_playFinishAnimation(context);
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ class _RoundViewState extends State<RoundView> {
|
||||
padding: EdgeInsets.zero,
|
||||
onPressed: () => {
|
||||
LocalStorageService.saveGameSessions(),
|
||||
Navigator.pop(context)
|
||||
Navigator.pop(context, -1)
|
||||
},
|
||||
child: Text(AppLocalizations.of(context).cancel),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user