HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to create and validate forms in Flutter

112,240 views October 25, 2019 23:10

Watch on YouTube
ChannelCoding with Curry

Chapters

Description from the creator

Almost every app requires some user input and validation. This video will show you how easy it is to create forms Flutter and validate user input.

00:00 - Intro
00:30 - Discussing existing code
01:00 - Creating the form
07:54 - Adding validation to a TextFormField
10:08 - Calling the validate() method
12:28 - Sorry about the editing error here :)
14:28 - validate the email field
17:03 - Setting specific keyboard types for different inputs
18:40 - Validating a number by parsing a string
21:03 - Controlling the length of characters (max/min)
21:34 - Testing a valid form

💻Get the Code: github.com/theflutterfactory/Flutter-Tutorials/…

⚡Connect on Facebook: facebook.com/flutterfactory

⚡Connect on Twitter: twitter.com/flutterfactory

About this tutorial

Coding with Curry published this 23:10 video tutorial on October 25, 2019. It has been watched 112,240 times on YouTube.

Duration
23:10
Published
October 25, 2019
Views
112,240
Likes
1,661

Tags

Share

Further reading

  • Form Validation in Flutter explained - CodeSource.io codesource.io

    Flutter Form Validation makes applications safe and easy to use, making sure that the user’s information is valid. In this article, we will learn how to validate forms in Flutter applications. For illustration, consider…

  • Build a form with validation - Flutter flutter.dev

    Create a button to validate and submit the form. 1. Create a Form with a GlobalKey. First, create a Form. The Form widget acts as a container for grouping and validating multiple form fields. When creating the form, pro…

  • Form Validation in Flutter. This article’s intent is to show ... medium.com

    Earlier we had autovalidate but from flutter 1.19 we have migrated to a new validation API. This makes your Form and FormField widgets auto validate on the first build and every time it changes.

  • How to Create, Validate and Save Form in Flutter | by Mahmud ... medium.com

    Step 5: Define the Form with Validation. So let's see the full source code of main.dart file. Here in the TestForm widget, we defined the form. To create a form, you first have to define a Global Key.

This tutorial in other languages