Skip to content

Instantly share code, notes, and snippets.

@Zfinix
Last active September 7, 2019 14:21
Show Gist options
  • Select an option

  • Save Zfinix/9a0a4c94d102fd6952e86dced3a213b0 to your computer and use it in GitHub Desktop.

Select an option

Save Zfinix/9a0a4c94d102fd6952e86dced3a213b0 to your computer and use it in GitHub Desktop.
import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:firebase_crashlytics/firebase_crashlytics.dart';
//import 'misc/gymModule/gymDetailUI.dart';
void main() {
// Set `enableInDevMode` to true to see reports while in debug mode
// This is only to be used for confirming that reports are being
// submitted as expected. It is not intended to be used for everyday
// development.
Crashlytics.instance.enableInDevMode = true;
// Pass all uncaught errors to Crashlytics.
FlutterError.onError = Crashlytics.instance.recordFlutterError;
runZoned<Future<void>>(() async {
runApp(MyApp());
}, onError: Crashlytics.instance.recordError);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment