A comprehensive Flutter project demonstrating the use of Firebase Authentication to implement email and password sign-in functionality. This project builds upon a modern login UI to integrate Firebase for authentication, allowing users to sign in with their email and password.
- Modern, clean login and registration UI.
- Email and password authentication using Firebase.
- User authentication state management with StreamBuilder.
- Error handling for login and registration processes.
- Loading indicators for asynchronous operations.
To get this project up and running on your local machine, follow these steps.
Ensure you have the following installed before proceeding:
- Flutter SDK
- An IDE with Flutter support (e.g., VSCode, Android Studio)
- Firebase CLI
-
Clone the Repository
git clone https://github.com/Raunak-Sarmacharya/Auth-Flutter-Firebase.git
-
Firebase Configuration: Ensure you have a Firebase project set up and configured. You'll need to configure the Firebase SDK with your project's details. Follow the Firebase documentation to create a new project, disable Google Analytics for simplicity, and add your app to Firebase.
-
Firebase CLI: Install the Firebase CLI using npm or any method suitable for your development environment. This is crucial for integrating Firebase services into your Flutter app.
npm install -g firebase-tools
-
FlutterFire Configuration: Use the
flutterfire configurecommand to automatically configure your Flutter app with Firebase. This step will update yourbuild.gradlefiles and add necessary Firebase dependencies to your project. -
Sign-In Method: Enable Email/Password as a sign-in method in your Firebase project's Authentication section.
Once setup is complete Install Dependencies, run the Flutter app:
flutter pub getflutter run