This will ensure we discard any resources usedīy default, decoration will apply the ThemeData.inputDecorationTheme for ![]() Remember to call TextEditingController.dispose of the TextEditingController Underlying EditableText's AutomaticKeepAliveClientMixin.wantKeepAlive in When the widget has focus, it will prevent itself from disposing via its The automatically generated controller an initial value. If a controller is not specified, initialValue can be used to give The controller's lifetime should be managed by a stateful widget ancestor If this FormField is part of a scrollingĬontainer that lazily constructs its children, like a ListView or aĬustomScrollView, then a controller should be specified. ![]() When a controller is specified, its TextEditingController.textĭefines the initialValue. Pass a GlobalKey to the constructor and use GlobalKey.currentState to Save, reset, or validate multiple fields at once. This is a convenience widget that wraps a TextField widget in aĪ Form ancestor is not required.
0 Comments
Leave a Reply. |