xxxxxxxxxx
1. Install flutter_fire CLI
2. Use `flutterfire configure`
3. Add `firebase_cor`e in pubspec.yaml
4. That’s set. Enjoy firebase
xxxxxxxxxx
# Install Flutter https://flutter.io/get-started/install/
# Signin to Firebase https://console.firebase.google.com/
# Install Firebase CLI https://firebase.google.com/docs/cli#setup_update_cli
$ firebase login
$ dart pub global activate flutterfire_cli
xxxxxxxxxx
To add firebase to flutter watch this video
https://www.youtube.com/watch?v=EXp0gq9kGxI&feature=emb_title
xxxxxxxxxx
dependencies:
flutter:
sdk: flutter
firebase_core: ^1.4.0
firebase_auth: ^3.1.2
cloud_firestore: ^3.1.2
# Add other Firebase packages if needed
xxxxxxxxxx
Android
1.change application ID name for "build.gradle"file
file path → android/app/build.gradle
update content → applicationId "your.package.name.when.creat.firebase.project"
2. add json file to the following path
yourPrjName/android/app/google-services.json
google-services.json is downloaded from firebase
3. following instruction to modify build.gradle
iOS
1. Open iOS folder with Xcode
2. Double click Runner
3. copy "Bundle identifier" then paste it to the "Apple bundle ID"
4. download " Download GoogleService-Info.plist " then drag and drop to "Runner" folder at Xcode.
5. go to console.firebase then click Next Next Next
6. uncomment "platform :ios, 'xx.0'" for ios/Podfile at flutter project