Almost every real app has to collect something from the user: a login, a search box, a sign-up form, a settings screen. Flutter gives you a set of input widgets for this, and the main skill is reading what the user entered and checking it before you use it.
This module starts with the TextField widget and the
TextEditingController that reads and changes its text. It then covers
the selection widgets (checkboxes, radio buttons, switches and
dropdowns) and finishes with forms: wrapping fields in a
Form, using TextFormField validators and a
GlobalKey<FormState> to validate everything on submit, and then
retrieving the submitted data.
Watch the lessons in order, then continue on to Networking & APIs.
A step-by-step introduction to the TextField widget, the basic building block for taking text input in a Flutter app.
Covers the common selection widgets (dropdown, checkbox, radio and switch) and introduces form validation.
Builds a form with validation using TextFormField, FormState and validators.
Creates and validates forms with TextFormFields, then retrieves and displays the submitted data while handling form state.