Loading topic
TextField is a Flutter widget that lets a user enter text. It handles keyboard input, cursor movement, selection, and editing. You can place it directly in a layout such as a Column, Row, or ListView.1 min readStatefulWidget, setState, Column, and Scaffold.1 min readColumn, and Scaffold. You should also know how a StatefulWidget uses setState.1 min readStatefulWidget, setState, and layouts such as Column and Scaffold. This chapter focuses on how a text field behaves while the user enters data. It does not replace validation. Choosing a number keyboard, for example, does not guarantee th1 min readStatefulWidget, and layouts such as Column. An input formatter changes the text edit before Flutter places it in a TextField or TextFormField. This lets you restrict characters, limit length, or normalize input while the user types.2 min readStatefulWidget, setState, and layouts such as Column and Scaffold. This chapter uses those ideas to group related inputs and validate them together.1 min readStatefulWidget, setState, and layouts such as Column and Scaffold. You will build a form that checks an email address before submission.1 min readStatefulWidget, setState, and layouts such as Column and Scaffold. In Flutter, validation timing controls when a TextFormField calls its validator and displays an error.1 min readStatefulWidget, setState, and layouts such as Column and Scaffold. This chapter focuses on what happens when a user submits a Form.1 min readColumn and Scaffold. It also assumes you know that a StatefulWidget keeps mutable state across rebuilds.2 min readStatefulWidget, and the basic use of Form and TextFormField. A validator is a function that receives a field's current value and returns either an error message or null. Returning null means the value is valid.2 min readStatefulWidget, Form, and TextFormField. This chapter focuses on rules that need more than one field, such as confirming a password or checking that a start date comes before an end date.2 min readStatefulWidget, setState, and layouts such as Column and Scaffold. A FormField<T> connects a non-text value to a Form. The type parameter T describes the value being edited, such as bool for a checkbox or String for a selected optio1 min readStatefulWidget, setState, Form, and TextFormField. This chapter shows how to handle errors that local validation cannot detect.1 min readStatefulWidget, and layouts such as Column and Scaffold. This chapter shows how to test a form's behavior instead of checking its private implementation.1 min readColumn, Scaffold, and StatefulWidget. This chapter focuses on making forms understandable and usable for people with different devices, abilities, and input methods.2 min read