How to create and validate forms in Flutter

preview_player
Показать описание
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

Рекомендации по теме
Комментарии
Автор

If you want to add multiple widgets in the same row, just add them to a Row widget to get the desired look. Leave a thumbs up if this video was helpful. I will be posting more Flutter videos in the near future.

TheFlutterFactory
Автор

How Can i send the Input to a database or Mail ?

omarmehrez
Автор

Great video thanks so much! You covered a lot of bases!

acarvey
Автор

good, but How Can i send the Input to a mysql database or Mail

prasadreddy
Автор

@cheetah coding..I have done similarly for add form but am facing issue in edit

sj_vlog
Автор

bro thank you for this video.. how can i add the post API for this i have URL on my test woocommerce site and i want to create registration form following ur tutorial, the part where im stuck is the last part sending it to the actual url :

mulkproject
Автор

The argument type 'String? Function(String)' can't be assigned to the parameter type 'String? Function(String?)?'.dart
what is this error

karthikgowda
Автор

Can You Show how to add validation to check boxes in flutter

saiprasad
Автор

Can you please make a video where we can upload mutiple files(maxlimit:4-5), to the server using flutter. I have used file_picker but finding the multi_file_picker difficult.

rutuja
Автор

Thanks for sharing, however the elements are deprecated and the way to write the code has changed. Could you please update the content?

yavarjn
Автор

Heya, what is the best way to stop the form fields spreading out when there is an invalid field? I tried putting a sized box between them, but it the error label doesn't fill that space it adds to it.

ScroatyDontKnow
Автор

u didnt mention that u removed "=>" in 11:00
i spent 5 mins figuring out why "return" is red

MoAdel
Автор

Hello!
I'm from Brazil.

I need an example, to create a form, where I will send emails without the need to use the gmail platform.
Have an example of how to do it using API's

leandrojldp
Автор

But, if I need to prefilll theses fields? Or filll some fileds based in calculations with another fields?

MarcusMoreiraSouza
Автор

is validate a built in method or did you make a validate method?

angrygranpa
Автор

Please tell a optimised code with dynamic textfield

vivekroy
Автор

Also your github code has many errors in it when I try to run it...

cfx
Автор

i have a question:

can you please replay about what purpose do you put 'return null' on the last of the video

muhammedameen
Автор

At level, or at what doc root, do you add code to the new git branch? At form_screen.dart? at lib? or at CWC_FLUTTER?

epi_sto_letes
Автор

How to add red asterisk in label of textformfield

like,
First Name *

vikasshinde