79208550

Date: 2024-11-20 18:38:47
Score: 1
Natty:
Report link

Had the same problem... by adding

WidgetsFlutterBinding.ensureInitialized();

in void main() fixed my problem

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp(
    options: DefaultFirebaseOptions.currentPlatform,
  );
  runApp(const MyApp());
}

`

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: sahil agrawal