A Brief But Accurate Documentation, BSD Linux And Programming

 Docker

Friday, September 17, 2021

Firebase initialize Flutter




To initialize Firebase we should add this in the main.dart with the following example:
void main() async {
  /// Firebase Initialize
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp();

  runApp(const MyApp());
}



No comments:

Post a Comment

Back to top