diff --git a/lib/presentation/views/main_menu/create_game/create_game_view.dart b/lib/presentation/views/main_menu/create_game/create_game_view.dart index d7e89d6..427ebf2 100644 --- a/lib/presentation/views/main_menu/create_game/create_game_view.dart +++ b/lib/presentation/views/main_menu/create_game/create_game_view.dart @@ -93,6 +93,10 @@ class _CreateGameViewState extends State { @override void initState() { super.initState(); + _gameNameController.addListener(() { + setState(() {}); + }); + db = Provider.of(context, listen: false); _allGroupsFuture = db.groupDao.getAllGroups(); @@ -126,11 +130,6 @@ class _CreateGameViewState extends State { child: TextInputField( controller: _gameNameController, hintText: 'Game name', - onChanged: (value) { - setState(() { - _gameNameController; - }); - }, ), ), ChooseTile(