#30DaysMasterFlutter
Learn the basics of Flutter and Dart in 30 days! We provide a roadmap, resources, and project ideas to help you along your journey.
back to 30 Days to Master FlutterDay 16
Making beautiful and useful forms requires learning how to style input elements and validate user input. Flutter provides a wide range of widgets that you can use to style your forms and validate user input. And there are also popular plugins that you can use to make your life easier.
Project - Login Form
Duplicate the registration form you built previous day, and change it to a login form with email and password input and a login button.
- Style input elements similar to the following image
- Validate email and password input when login button is pressed
- If email or password is empty, show a snackbar with message Please fill all the fields correctly
- If email is not valid, show a snackbar with message Please enter a valid email address
- If password is not valid, show a snackbar with message Password must be at least 8 characters long
- If email and password are valid, show a snackbar with message Login successful
By the end of this day, you will learn how to style input elements and validate user input in Flutter. You will also learn how to use popular plugins to make your life easier.
Enjoying? Tell your friends.
Learn the basics of Flutter and Dart in 30 days! We provide a roadmap, resources, and project ideas to help you along your journey.
back to 30 Days to Master FlutterJoin our community on Discord to connect with fellow learners, share your progress, and get help with any questions you may have throughout the #30DaysMasterFlutter challenge. Join now and get started on your journey to mastering Dart and Flutter!