Example of Firebase authentication in a flutter.

  Flutter App

Firebase-authentication

This project is an example of Firebase authentication in a flutter. This project shows how to implement a full authentication flow in Flutter, using sign Up with email and password, sign in with email and password, and reset password.

It aims to be a reference implementation. Think of it as “authentication done right”.

Project goals

This project shows how to:

  • Sign up with an email and password.
  • Sign in with that email and password.
  • Reset password.
  • use appropriate state management techniques to separate UI, logic, and Firebase authentication code
  • handle errors and present user-friendly error messages
  • write production-ready code following best practices

Feel free to use this in your own projects. wink

NOTE: This project will be kept up to date with the latest packages and Flutter version._

Platforms supported

  • heavy_check_mark Android
  • heavy_check_mark web
  • x windows

Preview

Sign-in

Sign-up

Forgot password

Sign-in

Sign-Up

Forgot-Password

Home

Features and Plugins used

  • heavy_check_mark Null safety
  • heavy_check_mark Firebase
  • heavy_check_mark firebase_core: ^1.6.0
  • heavy_check_mark firebase_auth: ^3.1.1
  • heavy_check_mark provider: ^6.0.0

Authentication features

  • heavy_check_mark Email & Password Sign In.
  • heavy_check_mark Email & Password Sign Up.
  • heavy_check_mark Reset Password.

Application features

Sign-in Page

  • heavy_check_mark Form to enter email and password for signing-in the user.
  • heavy_check_mark Button to toggle sign-up view.
  • heavy_check_mark Button to navigate to forgot password page.

Sign-up Page

  • heavy_check_mark Form to enter a name, email, and password for signing up the user.
  • heavy_check_mark Button to toggle sign-in view.

Forgot Password Page

  • heavy_check_mark Form to enter email for resetting the password.
  • heavy_check_mark Button to navigate to the sign-in page.

Download Firebase authentication app source code on GitHub