Flutter & Dart · Component
TextField
TextField is a Material widget for entering text with a keyboard. Use a controller to manage its value and callbacks to react to typing or completed editing.
Last updated
Syntax
TextField({Key? key, TextEditingController? controller, InputDecoration? decoration = const InputDecoration(), bool obscureText = false, int? maxLines = 1, int? minLines, bool expands = false, ValueChanged<String>? onChanged, ValueChanged<String>? onSubmitted, ...})In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
TextFormFieldInputDecoratorEditableTextTextEditingControllerCupertinoTextField