Prevents debugger stopping multiple times

This commit is contained in:
franzap
2025-03-20 22:34:58 -03:00
parent bd03c1ba19
commit 1fc42cecc3
+5 -1
View File
@@ -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 {