Updated game title textfield with focus node and textaction
This commit is contained in:
@@ -104,6 +104,14 @@ class _CreateGameViewState extends State<CreateGameView> {
|
|||||||
textAlign: TextAlign.right,
|
textAlign: TextAlign.right,
|
||||||
placeholder: AppLocalizations.of(context).game_title,
|
placeholder: AppLocalizations.of(context).game_title,
|
||||||
controller: _gameTitleTextController,
|
controller: _gameTitleTextController,
|
||||||
|
onSubmitted: (_) {
|
||||||
|
_playerNameFocusNodes.isNotEmpty
|
||||||
|
? _playerNameFocusNodes[0].requestFocus()
|
||||||
|
: FocusScope.of(context).unfocus();
|
||||||
|
},
|
||||||
|
textInputAction: _playerNameFocusNodes.isNotEmpty
|
||||||
|
? TextInputAction.next
|
||||||
|
: TextInputAction.done,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ name: cabo_counter
|
|||||||
description: "Mobile app for the card game Cabo"
|
description: "Mobile app for the card game Cabo"
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
|
|
||||||
version: 0.5.3+587
|
version: 0.5.3+588
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.5.4
|
sdk: ^3.5.4
|
||||||
|
|||||||
Reference in New Issue
Block a user