-
Notifications
You must be signed in to change notification settings - Fork 0
player_menu
A dialog just like the action tracker that pops up after an action is selected. You can select all players that are currently on the field to assign them an action.
Looks like this:

[playermenu.dart]
-
Arrangement of popup menu contents:
The arrangement is depicted in the following images:

The Alert class was restructured and takes now a column (light orange) with 3 entries (dark orange): the "Spieler" Text, the horizontal line and the button arrangement.
The button arrangement (light green) is a row with four entries (dark green): the first entry contains one player button and the others two. -
Arrangement of player button contents:
Each button contains a column with two entries: The first is Stack of buttonNumber text and t-shirt icon and the second the buttonText. For the right arrangement, all of those are centered inside the space they occupy. To have a similar appearance on different screen sizes, the height and width of the current screen is queried and sizes (like font size, icon size and button size) are determined relatively of those. -
Add T-Shirt Icon from FlutterIcon:
A Shirt Icon was downloaded from FlutterIcon. To add it to our project a how-to was followed.
You get a zip folder by downloading the icon. The included TTF file is copied to the asset folder and the pubspec.yaml file needs an additional entry under fonts. The included dart file is copied into the lib/utils folder. This dart class can now be used as IconData inside the Constructor of an Icon. -
Goal and Assist handling: Flutter state management Get is used to update the text on the upper right from "" to "Assist" after choosing a player for a goal. The color of this players button is changed also using get.
-
after a player is selected the button where the player icon used to be will be change to no "assist" (#92)
PageView widget is used to make the player menu switchable, like it was already used for the action menu. On the first page, all player on field are shown and on the second all other player which are in the team. The buttons are smaller if there are more than 8 players not on field:

A new list _playersToChange was added to TempController which contains all player chosen for an action from players which are not on field. After the action is recorded, another player menu opens which asks to which player this one should be substituted. This can be closed, if a change is not wished.

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