From 48cb448319dda2e2a5553e2ff72e6500c8bb6602 Mon Sep 17 00:00:00 2001 From: Calcitem Date: Fri, 9 Jul 2021 00:28:22 +0800 Subject: [PATCH] rule: Show experimental message when enabling mayMoveInPlacingPhase --- src/ui/flutter_app/lib/widgets/rule_settings_page.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ui/flutter_app/lib/widgets/rule_settings_page.dart b/src/ui/flutter_app/lib/widgets/rule_settings_page.dart index aa60b1d3..4af017f4 100644 --- a/src/ui/flutter_app/lib/widgets/rule_settings_page.dart +++ b/src/ui/flutter_app/lib/widgets/rule_settings_page.dart @@ -26,6 +26,7 @@ import 'package:sanmill/widgets/settings_list_tile.dart'; import 'package:sanmill/widgets/settings_switch_list_tile.dart'; import 'list_item_divider.dart'; +import 'snack_bar.dart'; class RuleSettingsPage extends StatefulWidget { @override @@ -400,6 +401,10 @@ class _RuleSettingsPageState extends State { print("[config] rule.mayMoveInPlacingPhase: $value"); Config.save(); + + if (value) { + showSnackBar(context, S.of(context).experimental); + } } setIsDefenderMoveFirst(bool value) async {