We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2aa97d9 commit a74434bCopy full SHA for a74434b
lib/error_stack.dart
@@ -39,13 +39,14 @@ class ErrorStack {
39
ErrorStackLogLevel level = ErrorStackLogLevel.verbose,
40
String initialRoute = "/",
41
Widget Function(FlutterErrorDetails errorDetails)? errorWidget,
42
+ bool forceDebugWidget = false,
43
}) async {
44
ErrorStack.instance.initialRoute = initialRoute;
45
ErrorStack.instance.themeMode = await ErrorStack.instance.storage
46
.read(key: '${ErrorStack.storageKey}_theme_mode') ??
47
'light';
48
ErrorWidget.builder = (FlutterErrorDetails errorDetails) {
- if (kReleaseMode) {
49
+ if (kReleaseMode && !forceDebugWidget) {
50
if (errorWidget != null) {
51
return errorWidget(errorDetails);
52
}
0 commit comments