flutter: Do not show Game Result Dialog if isAutoRestart enabled
This commit is contained in:
parent
7258de5cf6
commit
82e406308f
|
@ -29,8 +29,8 @@ import 'package:sanmill/mill/game.dart';
|
||||||
import 'package:sanmill/mill/mill.dart';
|
import 'package:sanmill/mill/mill.dart';
|
||||||
import 'package:sanmill/mill/types.dart';
|
import 'package:sanmill/mill/types.dart';
|
||||||
import 'package:sanmill/services/audios.dart';
|
import 'package:sanmill/services/audios.dart';
|
||||||
import 'package:stack_trace/stack_trace.dart';
|
|
||||||
import 'package:sanmill/style/app_theme.dart';
|
import 'package:sanmill/style/app_theme.dart';
|
||||||
|
import 'package:stack_trace/stack_trace.dart';
|
||||||
|
|
||||||
import 'board.dart';
|
import 'board.dart';
|
||||||
|
|
||||||
|
@ -108,8 +108,10 @@ class _GamePageState extends State<GamePage> with RouteAware {
|
||||||
changeStatus(colorWinStrings[winner]);
|
changeStatus(colorWinStrings[winner]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!Config.isAutoRestart) {
|
||||||
showGameResult(winner);
|
showGameResult(winner);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
onBoardTap(BuildContext context, int index) {
|
onBoardTap(BuildContext context, int index) {
|
||||||
if (!isReady) {
|
if (!isReady) {
|
||||||
|
|
Loading…
Reference in New Issue