feat: capitalize playerinitials to bloc

pull/98/head
RuiAlonso 4 years ago
parent 17e7a7a34d
commit b465803653

@ -77,6 +77,7 @@ class _GameOverDialogViewState extends State<GameOverDialogView> {
),
TextField(
controller: playerInitialsInputController,
textCapitalization: TextCapitalization.characters,
decoration: const InputDecoration(
border: OutlineInputBorder(),
hintText: 'Enter your initials',
@ -97,7 +98,8 @@ class _GameOverDialogViewState extends State<GameOverDialogView> {
LeaderboardEntryAdded(
entry: LeaderboardEntryData(
playerInitials:
playerInitialsInputController.text,
playerInitialsInputController.text
.toUpperCase(),
score: widget.score,
character: widget.theme.toType,
),

Loading…
Cancel
Save