Skip to content

Commit 50aa966

Browse files
committed
屏蔽红色弹框
1 parent d898b06 commit 50aa966

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/main.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ import 'common/utils/navigator_utils.dart';
2424

2525
void main() {
2626
runZoned(() {
27+
ErrorWidget.builder = (FlutterErrorDetails details) {
28+
Zone.current.handleUncaughtError(details.exception, details.stack);
29+
return Container(
30+
color: Colors.transparent
31+
);
32+
};
2733
runApp(FlutterReduxApp());
2834
PaintingBinding.instance.imageCache.maximumSize = 100;
2935
Provider.debugCheckInvalidValueType = null;

0 commit comments

Comments
 (0)