Closed farisdahleh closed 4 years ago
I followed all the steps in firebase configuration, every time I go to the registration page I got this error
"No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp()"
you need to call the initializeApp method on the Firebase class
you could use this function in the main.dart file instead of void main() => runApp(FlashChat());
Future main() async { WidgetsFlutterBinding.ensureInitialized(); await Firebase.initializeApp(); runApp(FlashChat()); }
I followed all the steps in firebase configuration, every time I go to the registration page I got this error
"No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp()"