Results for “TextField”
Full-text search across Boring Doc explanations, official documentation pages, the Flutter API index and every indexed version change.
Concepts
- Common Flutter errors and how to fix them3.47.7widgets
InputDecorator ... cannot have an unbounded width': a ListView inside a Column, or a TextField inside a Row, with nothing bounding the main axis. Give it a size
- Forms and validation3.47.7forms
Wrap your fields in a Form, give it a GlobalKey , and put
- Accessibility3.47.7accessibility
Flutter builds a semantics tree next to the render tree and hands
Guides
- User inputdoc
input those guesses. In this lesson, build that functionality with two interaction widgets: TextField and IconButton . Implement callback functions To allow users to type in their guesses
- Create and style a text fielddoc
create and style text fields. Flutter provides two Material Design text fields: TextField and TextFormField . TextField TextField is the most commonly used text input widget
- Focus and text fieldsdoc
How focus works with text fields. When a text field is selected
- Handle changes to a text fielddoc
changes? With Flutter, you have two options: Supply an onChanged() callback to a TextField or a TextFormField . Use a TextEditingController . 1. Supply an onChanged() callback
- Tap, drag, and enter textdoc
also respond to user interaction. This includes buttons that can be tapped, and TextField for entering text. To test these interactions, you need a way to simulate
- Retrieve the value of a text fielddoc
field using the following steps: Create a TextEditingController . Supply the TextEditingController to a TextField . Display the current value of the text field. 1. Create a TextEditingController
- Send data to the internetdoc
How to use the http package to send data over the internet
- Add interactivity to your Flutter appdoc
How to implement a stateful widget that responds to taps. How to
- Animations tutorialdoc
A tutorial showing how to build explicit animations in Flutter. How to
- Common Flutter errorsdoc
How to recognize and resolve common Flutter framework errors. Introduction This page
API reference
- TextFieldclass
Material Design text field. material.TextField TextField Text Field class material
- TextFieldTapRegionclass
EditableText text editing widget, such as TextField and CupertinoTextField. widgets.TextFieldTapRegion TextFieldTapRegion Text Field Tap Region class widgets
- TextFieldTapRegion.newconstructor
Creates a const TextFieldTapRegion. widgets.TextFieldTapRegion.TextFieldTapRegion.new TextFieldTapRegion new Text Field Tap Region.new constructor widgets
- TextField.newconstructor
Creates a Material Design text field. material.TextField.TextField.new TextField new Text Field.new constructor material
- TextFormFieldclass
FormField that contains a TextField. material.TextFormField TextFormField Text Form Field class material
- DropdownMenuclass
dropdown menu that can be opened from a TextField. The selected menu item is displayed in that field. material.DropdownMenu DropdownMenu Dropdown Menu class material
- Formclass
optional container for grouping together multiple form field widgets (e.g. TextField widgets). widgets.Form Form Form class widgets
- TextSelectionThemeDataclass
Defines the text selection visual properties for descendant TextField and SelectableText widgets. material.TextSelectionThemeData TextSelectionThemeData Text Selection Theme Data class material
- material.InputCounterWidgetBuildertypedef
Signature for the TextField.buildCounter callback. material.InputCounterWidgetBuilder InputCounterWidgetBuilder Input Counter Widget Builder typedef material
- TextFormField.newconstructor
Creates a FormField that contains a TextField. material.TextFormField.TextFormField.new TextFormField new Text Form Field.new constructor material
- InputDecorator.newconstructor
Creates a widget that displays a border, labels, and icons, for a TextField. material.InputDecorator.InputDecorator.new InputDecorator new Input Decorator.new constructor material
- TextSelectionThemeData.newconstructor
Creates the set of properties used to configure TextFields. material.TextSelectionThemeData.TextSelectionThemeData.new TextSelectionThemeData new Text Selection Theme Data.new constructor material
- widgets.AutocompleteFieldViewBuildertypedef
type of the Autocomplete callback which returns the widget that contains the input TextField or TextFormField. widgets.AutocompleteFieldViewBuilder AutocompleteFieldViewBuilder Autocomplete Field View Builder typedef widgets
Version changes
- TextField requires MaterialLocalizations1.20.0breaking
Instances of `TextField` must have a `MaterialLocalizations` present in the widget tree. Trying to instantiate a `TextField` without the proper localizations results in an assertion such
- - Autofill does not work in `TextField`.2.10.1bugfix
Autofill does not work in `TextField
- - Safari: Unable to enter text into `TextField`.2.10.1bugfix
Safari: Unable to enter text into `TextField
- - Fatal crash with java.lang.AssertionError when selecting text in TextField.3.3.3bugfix
Fatal crash with java.lang.AssertionError when selecting text in TextField
- Use maxLengthEnforcement instead of maxLengthEnforced2.0.0breaking
type `MaxLengthEnforcement`, as a replacement for the now-deprecated boolean `maxLengthEnforced` parameter on `TextField`, `TextFormField`, `CupertinoTextField`, and `LengthLimitingTextInputFormatter` classes. The `maxLengthEnforced` parameter was used to decide whether
- - Fixes an issue on iOS where Flutter `TextField`s may stop accepting input.3.24.2bugfix
Fixes an issue on iOS where Flutter `TextField`s may stop accepting input
- - Fixes an issue where the `Toolbar` widget is incorrectly positioned when inside of a textfield in the Appbar.3.7.8bugfix
issue where the `Toolbar` widget is incorrectly positioned when inside of a textfield in the Appbar
- - Fixes a focus issue on iOS and MacOS that causes `TextFields` to not function after cupertino back swipes.3.22.2bugfix
Fixes a focus issue on iOS and MacOS that causes `TextFields` to not function after cupertino back swipes
- - Fix regression in the GestureRecognizers used by the TextField where it would not fire the onTapDown or onTapUp callbacks which made...3.10.6bugfix
regression in the GestureRecognizers used by the TextField where it would not fire the onTapDown or onTapUp callbacks which made selection not work
- - Fixes an issue on iOS where users are unable to focus on a `TextField` or open the keyboard again after side pop from another screen.3.22.2bugfix
Fixes an issue on iOS where users are unable to focus on a `TextField` or open the keyboard again after side pop from another screen
- Replaced parameters for customizing context menus with a generic widget builder3.7.0breaking
contextMenuBuilder` parameter on the relevant text-editing or text-selection widget ( [on `TextField`]({{site.material_ui}}/TextField/contextMenuBuilder.html), for examp
- Fix TextField does not inherit local InputDecorationTheme3.41.0bugfix
TextField does not inherit local InputDecorationTheme (Material, by @bleroux). TextField InputDecorationTheme
- Add Shift+Enter shortcut example for TextField.3.38.0new-feature
Shift+Enter shortcut example for TextField. (Material, by @ksokolovskyi). TextField
- Add textfield prop to SearchAnchor3.41.0new-feature
textfield prop to SearchAnchor (Material, by @progamax). SearchAnchor
- Make sure that a TextField doesn't crash in 0x0 environment3.41.0bugfix
Make sure that a TextField doesn't crash in 0x0 environment (Material, by @ahmedsameha1). TextField
- Fix remove material import textfield3.44.0bugfix
remove material import textfield (Framework, by @kazbeksultanov
- [a11y] Textfield has flag `isFocusable` set to true3.38.0improvement
a11y] Textfield has flag `isFocusable` set to true (Material, by @hannah
- Insert content text input client3.10.0breaking
allow Android's image keyboard feature to insert content into a Flutter `TextField`. When the user inserts rich content in the IME, the platform sends a `TextInputClient.commitContent
- Deprecate InputDecoration.maintainHintHeight in favor of InputDecoration.maintainHintSize3.32.0deprecated
override the default intrinsic size computation. Code before migration: ```dart highlightLines=3 TextField( indicator: InputDecoration( maintainHintHeight: false, ), ), ``` Code after migration: ```dart highlightLines=3 TextField( indicator: InputDecoration
- TextInputClient currentTextEditingValue1.17.0breaking
foreground. This is seen, for example, when text entered in a `TextField` widget is lost to the Java code, but is still remembered in the Dart code
- TextSelectionTheme migration2.0.0breaking
Text Selection Theme used to specify the properties of selected text in `TextField` and `SelectableText` widgets. These replace several top-level properties of `ThemeData` and update their
- The Route and Navigator refactoring1.17.0breaking
Case 1: An app depends on `pop()` returning a boolean value. ```dart TextField( onTap: () { if (Navigator.pop(context)) print('There still is at least one route after
- Updated default text styles for menus3.16.0breaking
The default text styles used for menus are updated to match the
- Deprecated API removed after v2.103.0.0removed
that reached end of life after the 2.10 stable release have been removed. TextField MaxLengthEnforcement.enforce MaxLengthEnforcement.none MaxLengthEnforcement.truncateAfterCompositionEnds TextFormField CupertinoTextField VelocityTracker PointerDeviceKind VelocityTracker.kind PointerDeviceKind.touch DayPicker MonthPicker CalendarDatePicker FlatButton
- Deprecate SystemContextMenuController.show3.32.0deprecated
migration is needed: ```dart class _MyWidgetState extends State { @override Widget build(BuildContext context) { TextField( contextMenuBuilder: (BuildContext context, EditableTextState editableTextState) { return SystemContextMenu.editableText( editableTextState: editableTextState, ); } ); } } ``` For advanced users that
- New Buttons and Button Themes1.20.0breaking
A new set of basic material button widgets and themes have been