Answers for "flutter call firebase.initializeapp()"

3

initialize app flutter with firebase

import 'package:firebase_core/firebase_core.dart';

void main() async {
   WidgetsFlutterBinding.ensureInitialized();
   await Firebase.initializeApp();
   runApp(MyApp());
}
Posted by: Guest on May-07-2021
16

[core/no-app] No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp() flutter

import 'package:firebase_core/firebase_core.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp();
  runApp(MyApp());
}
Posted by: Guest on August-26-2020

Code answers related to "flutter call firebase.initializeapp()"

Browse Popular Code Answers by Language