Skip to content

mehuldadlani/Firebase-Authentication

Repository files navigation

Flutter Firebase Authentication with Email and Google Sign-In

This Flutter application demonstrates how to implement Firebase Authentication using email and Google Sign-In in Flutter. The app uses Firebase Authentication to authenticate users with their email and password or through Google Sign-In.

The app consists of two screens:

Login Screen: This screen allows users to authenticate with their email and password or through Google Sign-In.

Home Screen: This screen is displayed after a successful login and displays the user's name and email.

📄 Getting Started

Before running this app, please make sure you have created a Firebase project and added the Google Services configuration files to the project.

To run the app, please follow these steps:

  1. Clone this repository using git clone https://github.com/M3hulD/Firebase-Authentication.git.

  2. Open the project in your preferred IDE.

  3. Open a terminal and navigate to the project directory.

  4. Run flutter pub get to install the necessary dependencies.

  5. Run flutter run to start the app.

Configuring Firebase

To use Firebase Authentication in your app, you must first create a Firebase project and add the necessary configuration files to your app.

  1. Create a new Firebase project in the Firebase console.

  2. Add Firebase Authentication to your project in the Firebase console.

  3. Download the google-services.json configuration file from the Firebase console and add it to the android/app/ directory in your project.

  4. Download the GoogleService-Info.plist configuration file from the Firebase console and add it to the ios/Runner/ directory in your project.

Dependencies

This app uses the following dependencies:

firebase_auth - The Firebase Authentication library for Flutter.

google_sign_in - A Flutter plugin for Google Sign-In.

📜 License

Firebase Authentication is available under the MIT license. See the LICENSE file for more info.

Screenshots

project-screenshot

project-screenshot

project-screenshot

project-screenshot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published