londonappbrewery / flash-chat-flutter

Learn to Code While Building Apps - The Complete Flutter Development Bootcamp
https://www.appbrewery.co
195 stars 677 forks source link

No firebase app #25

Closed farisdahleh closed 4 years ago

farisdahleh commented 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()"

andreach36 commented 4 years ago

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()); }