Validating form and send it to an API REST on Flutter


To create and to send values of a form through of an API REST is necessary to validate many things

Hello Every Body!!

To create and to send values of a form through of an API REST is necessary to validate many things, for example: The field is required or no, how many character can take, if field is email type, among other things.

On flutter we can manage this very easy and fast. Flutter has Dio_Client dependences to communicate with our API REST created in Python Django-RestFramework. This API REST is in charge of receiving the form from Flutter App including an image.

To validate form we are using the Form Widget and with the Widget TextFormField we are using validator properties to validate the field.

Here you have a summary of the implementation.

You can also download the source code in GitHub or you can go on my YouTube Channel.