0

When I run my application suddenly this problem appears =>

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

Error image

I have tried several things and still get the error. hopefully, there is a solution.

ALI USAMA
  • 315
  • 1
  • 12

1 Answers1

0

I think it is because you have not initialized your app with Firebase.

In the main method of your application add this

WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();

like this

enter image description here

ALI USAMA
  • 315
  • 1
  • 12