From 4d53769dca37d502bf52406e0a88b18d3bd4d113 Mon Sep 17 00:00:00 2001 From: Leptopoda Date: Tue, 19 Oct 2021 10:44:38 +0200 Subject: [PATCH] fix code style fixes #335 - renames snackbar.dart - fixes a wrong log --- src/ui/flutter_app/lib/screens/game_page/game_page.dart | 2 +- .../lib/screens/game_settings/game_settings_page.dart | 2 +- .../lib/screens/rule_settings/rule_settings_page.dart | 2 +- src/ui/flutter_app/lib/shared/{snack_bar.dart => snackbar.dart} | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename src/ui/flutter_app/lib/shared/{snack_bar.dart => snackbar.dart} (100%) diff --git a/src/ui/flutter_app/lib/screens/game_page/game_page.dart b/src/ui/flutter_app/lib/screens/game_page/game_page.dart index 7993de7a..014b9242 100644 --- a/src/ui/flutter_app/lib/screens/game_page/game_page.dart +++ b/src/ui/flutter_app/lib/screens/game_page/game_page.dart @@ -37,7 +37,7 @@ import 'package:sanmill/services/engine/native_engine.dart'; import 'package:sanmill/services/storage/storage.dart'; import 'package:sanmill/shared/dialog.dart'; import 'package:sanmill/shared/picker.dart'; -import 'package:sanmill/shared/snack_bar.dart'; +import 'package:sanmill/shared/snackbar.dart'; import 'package:sanmill/shared/theme/app_theme.dart'; //import 'package:screen_recorder/screen_recorder.dart'; import 'package:stack_trace/stack_trace.dart'; diff --git a/src/ui/flutter_app/lib/screens/game_settings/game_settings_page.dart b/src/ui/flutter_app/lib/screens/game_settings/game_settings_page.dart index bfe2e9aa..36ec8bbc 100644 --- a/src/ui/flutter_app/lib/screens/game_settings/game_settings_page.dart +++ b/src/ui/flutter_app/lib/screens/game_settings/game_settings_page.dart @@ -67,7 +67,7 @@ class GameSettingsPage extends StatelessWidget { void _setAiIsLazy(Preferences _preferences, bool value) { LocalDatabaseService.preferences = _preferences.copyWith(aiIsLazy: value); - debugPrint("$_tag aiMovesFirst: $value"); + debugPrint("$_tag aiIsLazy: $value"); } void _setAlgorithm(BuildContext context, Preferences _preferences) { diff --git a/src/ui/flutter_app/lib/screens/rule_settings/rule_settings_page.dart b/src/ui/flutter_app/lib/screens/rule_settings/rule_settings_page.dart index 8d8628ba..671123b6 100644 --- a/src/ui/flutter_app/lib/screens/rule_settings/rule_settings_page.dart +++ b/src/ui/flutter_app/lib/screens/rule_settings/rule_settings_page.dart @@ -24,7 +24,7 @@ import 'package:sanmill/services/storage/storage.dart'; import 'package:sanmill/shared/settings/settings_card.dart'; import 'package:sanmill/shared/settings/settings_list_tile.dart'; import 'package:sanmill/shared/settings/settings_switch_list_tile.dart'; -import 'package:sanmill/shared/snack_bar.dart'; +import 'package:sanmill/shared/snackbar.dart'; import 'package:sanmill/shared/theme/app_theme.dart'; part 'package:sanmill/screens/rule_settings/fly_piece_count_modal.dart'; diff --git a/src/ui/flutter_app/lib/shared/snack_bar.dart b/src/ui/flutter_app/lib/shared/snackbar.dart similarity index 100% rename from src/ui/flutter_app/lib/shared/snack_bar.dart rename to src/ui/flutter_app/lib/shared/snackbar.dart