Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. import 'dart:async';
  2.  
  3. import 'package:flutter/foundation.dart';
  4. import 'package:flutter/material.dart';
  5. import 'package:firebase_crashlytics/firebase_crashlytics.dart';
  6.  
  7. //import 'misc/gymModule/gymDetailUI.dart';
  8.  
  9.  
  10. void main() {
  11. // Set `enableInDevMode` to true to see reports while in debug mode
  12. // This is only to be used for confirming that reports are being
  13. // submitted as expected. It is not intended to be used for everyday
  14. // development.
  15. Crashlytics.instance.enableInDevMode = true;
  16.  
  17. // Pass all uncaught errors to Crashlytics.
  18. FlutterError.onError = Crashlytics.instance.recordFlutterError;
  19.  
  20. runZoned<Future<void>>(() async {
  21. runApp(MyApp());
  22. }, onError: Crashlytics.instance.recordError);
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement