The following StackOverflowError was thrown while calling onSubmitted for TextInputAction.done

Issue I am doing form saving with flutter 3.3.6 the code in the build method is: TextFormField( decoration: const InputDecoration(labelText: ‘Image URL’), textInputAction: TextInputAction.done, keyboardType: TextInputType.url, controller: _imageUrlController, focusNode: _imageUrlFocusNode, onSaved: (value) { _editedProduct = Product( id: _editedProduct.id, title: _editedProduct.title,

Continue reading

Change date time picker header color in Flutter

Issue I’m using Flutter Form Builder package and it seems I can’t change the color directly using the FormBuilderDateTimePicker class, so I used the datePickerTheme in the ThemeData, datePickerTheme: const DatePickerThemeData( headerBackgroundColor: Color(0xFF2296F3), headerForegroundColor: Colors.white, backgroundColor: Color(0xFFE6F3FD), ), But the

Continue reading

Error: The getter 'FormBuilderValidators' isn't defined

Issue I am getting the following error from flutter: lib/screens/create_account_screen.dart:30:30: Error: The getter ‘FormBuilderValidators’ isn’t defined for the class ‘_CreateAccountScreenState’. – ‘_CreateAccountScreenState’ is from ‘package:myapp/screens/create_account_screen.dart’ (‘lib/screens/create_account_screen.dart’). Try correcting the name to the name of an existing getter, or defining a

Continue reading