Skip to content

Commit 741fc64

Browse files
committed
fix: remove shouldExitOnFlutterError until further tested
1 parent 346e26b commit 741fc64

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/src/utils/instabug_widget.dart

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,6 @@ class InstabugWidget extends StatefulWidget {
6060
/// Note: This has no effect if [nonFatalFlutterErrors] is false.
6161
final NonFatalExceptionLevel nonFatalExceptionLevel;
6262

63-
/// Whether to exit the app on Flutter error.
64-
///
65-
/// If true, the app will exit when a Flutter error occurs.
66-
final bool shouldExitOnFlutterError;
67-
6863
/// This widget is used to wrap the root of your application. It will automatically
6964
/// configure both FlutterError.onError and PlatformDispatcher.instance.onError handlers to report errors to Instabug.
7065
///
@@ -85,7 +80,6 @@ class InstabugWidget extends StatefulWidget {
8580
this.platformErrorHandler,
8681
this.nonFatalFlutterErrors = false,
8782
this.nonFatalExceptionLevel = NonFatalExceptionLevel.error,
88-
this.shouldExitOnFlutterError = false,
8983
}) : super(key: key);
9084

9185
@override
@@ -127,10 +121,6 @@ class _InstabugWidgetState extends State<InstabugWidget> {
127121
}
128122

129123
FlutterError.presentError(details);
130-
131-
if (widget.shouldExitOnFlutterError) {
132-
exit(1);
133-
}
134124
};
135125

136126
PlatformDispatcher.instance.onError = (Object error, StackTrace stack) {

0 commit comments

Comments
 (0)