Skip to content

Instantly share code, notes, and snippets.

@ookami-kb
Created June 15, 2020 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ookami-kb/7f5e8131c82d4bcefed6afa35becc623 to your computer and use it in GitHub Desktop.
Save ookami-kb/7f5e8131c82d4bcefed6afa35becc623 to your computer and use it in GitHub Desktop.
await runZoned<Future<void>>(
() async => runApp(app),
onError: _reportError,
);
FlutterError.onError = (FlutterErrorDetails details) {
Zone.current.handleUncaughtError(details.exception, details.stack);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment