Member-only story
How To Validate Emails in Flutter
Validation made simple using this Flutter package

Welcome to my first article about Flutter package testing. Each week, I will test another package published under pub.dev.
Email Validator
This week’s package provides you with one easy-to-use function to validate an email input. The author mentions that this is a simple (but “correct”) Dart class for email validation without using regular expressions. We’ll come back later to why he calls it correct.
Table of content
Purpose
Scope
Example
Limitations
Installation
Version
Scores
Rating
Links
Purpose
I think the purpose of this package is very clear. For example, if you want to register a user with an email address and a password, you have to verify that the email address is valid. If it’s not, you can give your user a hint that they have to check their email address again for any spelling mistakes. Not all backend systems support email validation while creating a new user. According to your app’s user experience, it’s also much better to help your user when they’ve finished the email address input and want to start filling in a password.