Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import 'dart:async';
import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_crashlytics/firebase_crashlytics.dart';
import 'package:flutter/material.dart';
import 'package:qundo/app/app.dart';
import 'package:qundo/environment.dart';
void startApp() => runApp(App(QA));
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
await FirebaseCrashlytics.instance.setCrashlyticsCollectionEnabled(true);
runZonedGuarded(() {
startApp();
}, FirebaseCrashlytics.instance.recordError);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment