A new Flutter project which demonstrates how to implement Firebase Authentication in Flutter.
First, add firebase_core
and firebase_auth
as a dependency in your pubspec.yaml file.
dependencies:
flutter:
sdk: flutter
firebase_core: ^3.9.0
firebase_auth: ^5.3.4
- Go to the Firebase Console.
- Create a new project.
- Add Android and iOS app to the project.
- Download
google-services.json
andGoogleService-Info.plist
files. - Add
google-services.json
andGoogleService-Info.plist
files to your project. - Enable Email/Password Sign-in method in Firebase Authentication.
- Run your app.
- Done!