Installation
- Install Flutter on your system. You can follow the instructions on the official Flutter website.
- Open the project in your preferred IDE (Integrated Development Environment).
Firebase Firestore Setup for Android and iOS in Flutter
To set up Firebase Firestore in your Flutter app, follow these steps:
1. Create a Firebase Project
First, create a New Application in the Same Project
for GPTalkers in the Firebase Console.
2. Add Firebase to your Flutter App
To add Firebase to your Flutter app, follow these steps:
- In your Firebase Console, navigate to your project's settings and click on the "Add app" button.
- Select the platform for your app (Android or iOS).
3. Create a service account for your Firebase project (Important
)
- Open the Google Cloud Console and select your Firebase project.
- Click on “IAM & Admin” then on “Service accounts”.
- Click on the “Create Service Account” button.
-
Enter a name, ID, and description for your service account, then click “Create And Continue”.
-
Next in “Grant this service account access to project”, select the “Editor” role for your service account and click “Continue”.
-
Optionally, grant other users or groups access to your service account, then click “Done”.
-
Find your new service account in the list, click on the three-dot menu next to it, and choose “Manage keys”.