Module 08 of 12

Forms & User Input

Lessons

About This Module

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.

Lessons

4 videos
01

Flutter TextField Widget - Complete Beginner Tutorial

A step-by-step introduction to the TextField widget, the basic building block for taking text input in a Flutter app.

02

Flutter Tutorial for Beginners #22 Dropdown, Checkbox, Radio, Switch, Form Validation

Covers the common selection widgets (dropdown, checkbox, radio and switch) and introduces form validation.

03

Flutter Form Validation

Builds a form with validation using TextFormField, FormState and validators.

04

How to Validate Forms and Retrieve Data in Flutter

Creates and validates forms with TextFormFields, then retrieves and displays the submitted data while handling form state.