Configuring Firebase
Before you do step change the package name, you must do this step for firebase project configuration
Vist Firebase console: https://console.firebase.google.com

Please register or log in first and then select create new project. In the dialog window enter the name of the project that will be created and the contents of the state and then click the create project to continue.
1) Add a new project
2) Get started by adding firebase to your project. Select the flutter icon.
3) The easiest way to get you started is to use the FlutterFire CLI.
Before you continue, make sure to:
Install the Firebase CLI and log in (run
firebase login
)Create a Flutter project (run
flutter create
)
4) In firebase CLI Install standalone binary and npm


5) Log in and test the Firebase CLI
firebase login
firebase projects:list
6) Install and run the FlutterFire CLI

7) Initialize firebase

8) For firestore database setup see the clip below:
9) Next go to the firestore database -> 'Rules' tab and replace the code with the following snippet:
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}
}
10) Once this is completed Please repeat step 5 and 6.
Last updated