Setting up Firebase for a Flutter application involves several steps. The following is a general guideline for integrating Firebase into a Flutter project. The exact details might vary based on the specific Firebase services you plan to use and the platforms (iOS, Android, web) you're targeting.
Since I am using a iOS platform, this process will be based on macOS.
curl -sL https://firebase.tools | bash
firebase login
dart pub global activate flutterfire_cli
flutterfire configure
When prompted, create a project name (this name needs to be unique).
Choose the platform you want your project to run.
To make sure Firebase code works, run the following command to install the core plugin.
flutter pub add firebase_core
firebase_auth // authentication
cloud_firestore // database
firebase_storage // user files
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform,
);