CreateGameView erstellen #67
@@ -255,12 +255,9 @@ class _CreateGameViewState extends State<CreateGameView> {
|
|||||||
/// Determines whether the "Create Game" button should be enabled based on
|
/// Determines whether the "Create Game" button should be enabled based on
|
||||||
|
flixcoo marked this conversation as resolved
Outdated
|
|||||||
/// the current state of the input fields.
|
/// the current state of the input fields.
|
||||||
bool _enableCreateGameButton() {
|
bool _enableCreateGameButton() {
|
||||||
final value =
|
return _gameNameController.text.isNotEmpty &&
|
||||||
_gameNameController.text.isNotEmpty &&
|
|
||||||
(selectedGroup != null ||
|
(selectedGroup != null ||
|
||||||
(selectedPlayers != null && selectedPlayers!.length > 1)) &&
|
(selectedPlayers != null && selectedPlayers!.length > 1)) &&
|
||||||
selectedRuleset != null;
|
selectedRuleset != null;
|
||||||
print('button: $value');
|
|
||||||
return value;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user
hier sicherstellen, dass mindestens 2 spieler in nem game sind oder nicht?
kann leider nicht an der richtigen stelle kommentieren, aber in der function halt