![]() Your Flutter app, it will be used by the Apple, Android, and web versions of Since Flutter is a multi-platform framework, each Firebase plugin is applicableįor Apple, Android, and web platforms. (for example: Cloud Firestore, Authentication, Analytics, etc.). You access Firebase in your Flutter app through the variousįirebase Flutter plugins, one for each Firebase product Rebuild your Flutter application: flutter run Options: DefaultFirebaseOptions.currentPlatform, In your lib/main.dart file, import the Firebase core plugin and theĬonfiguration file you generated earlier: import 'package:firebase_core/firebase_core.dart' Īlso in your lib/main.dart file, initialize Firebase using theĭefaultFirebaseOptions object exported by the configuration file: await Firebase.initializeApp( That your Flutter app's Firebase configuration is up-to-date: flutterfire configure The core plugin: flutter pub add firebase_coreįrom your Flutter project directory, run the following command to ensure Re-running the command ensures that your Flutter app's FirebaseĬonfiguration is up-to-date and (for Android) automatically adds anyįrom your Flutter project directory, run the following command to install Performance Monitoring, or Realtime Database.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |