-
Notifications
You must be signed in to change notification settings - Fork 0
bottom_left_buttons
This is implemented in side_switch.dart and is named SideSwitch. It is a simple TextButton which on pressing changes the attribute _attackIsLeft of the TempController and then applies
Get.to(MainScreen(), preventDuplicates: false);
The parameter preventDuplicates: false makes the Main screen reload even though we are already in mainscreen. Otherwise the colors would only adapt after the first switch or otherwise reload of the screen.
This is implemented in stop_game.dart and is named StopGameButton. It is a simple TextButton which on pressing opens an alert menu calling showDialog. The stopping of the game can still be canceled on pressing the cancel button in the dialog or just pressing anywhere else in the screen. On pressing OK, the function stopGame() of gameControl.dart is called, which updates the game parameters like scores and writes them to the db.
This sidebar is customized. You can add new pages here by clicking 'Edit sidebar' above. To see all pages that exist in the Wiki click here
Ef Score
Firebase
UI
Figma Screens
Flutter
- Dashboard
- Start Game Screen
- Authentication Screen
- App Settings
- Class Model and Data
- Feed
- First Steps
- Helper Screen
- Settings Screen
- State Management
- Testing
- String Management
- Helpers