diff --git a/lib/main.dart b/lib/main.dart index f572797..b692811 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -43,7 +43,11 @@ void main() { ); }, errorHandler); - FlutterError.onError = (_) => errorHandler(_.exception, _.stack); + FlutterError.onError = (details) { + // Prevents debugger stopping multiple times + FlutterError.dumpErrorToConsole(details); + errorHandler(details.exception, details.stack); + }; } class ZapstoreApp extends ConsumerWidget {