2022-02-11
3007
#flutter
Eshiet Ekemini
43295
Feb 11, 2022 â‹… 10 min read

Flutter form validation: The complete guide

Eshiet Ekemini A graduate of University of Uyo and a tech enthusiast, Ekemini has been building for mobile for two years, with a particular focus on Kotlin and Flutter.

Recent posts:

Justin Kitagawa Leader Spotlight

Leader Spotlight: Riding the rocket ship of scale, with Justin Kitagawa

We sit down with Justin Kitagawa to learn more about his leadership style and approach for handling the complexities that come with scaling fast.

Jessica Srinivas
Mar 29, 2024 â‹… 8 min read
Nx Adoption Guide: Overview, Examples, And Alternatives

Nx adoption guide: Overview, examples, and alternatives

Let’s explore Nx features, use cases, alternatives, and more to help you assess whether it’s the right tool for your needs.

Andrew Evans
Mar 28, 2024 â‹… 9 min read
Understanding Security In React Native Applications

Understanding security in React Native applications

Explore the various security threats facing React Native mobile applications and how to mitigate them.

Wisdom Ekpotu
Mar 27, 2024 â‹… 10 min read
A Guide to Better State Management With Preact Signals

A guide to better state management with Preact Signals

Signals is a performant state management library with a set of reactive primitives for managing the application state.

Nefe James
Mar 26, 2024 â‹… 8 min read
View all posts

4 Replies to "Flutter form validation: The complete guide"

  1. I got an error in the validation section then I solved the problem as follows;

    validator: (val) {
    if (!val.isValidName)
    return ‘Enter valid email’;
    },

    You cant return string or null in function, so you need to return empty string.If you do that it will solve.I did share code in the below

    validator: (val) {
    if (!val.isValidName)
    return ‘Enter valid email’;
    return ”;
    },

  2. Wow! So helpful in getting a handle on various validation and input field formatting in Flutter. Thank you! This is helpful and useful because it shows actual working examples, building from the basic form. The registration form is a particularly good example because it illustrates most use cases for starting programmers (in general, or just new to Flutter, like me).
    I’m not quite finished as I’ve got what I need for my current project, nonetheless I’m looking forward to the remainder (Making a custom form field, on). It really appears to fulfill on it’s title!

Leave a Reply