Skip to content

Commit 02b2d6a

Browse files
committed
use description from docs
1 parent fc1b104 commit 02b2d6a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

flutter/README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ It will capture errors in the native layer, including (Java/Kotlin/C/C++ for And
2323

2424
- Initialize the Sentry SDK using the DSN issued by Sentry.io:
2525

26-
- Errors not caught by flutter will be reported automatically by the SDK
27-
- Starting with Flutter 3.3, the SDK uses [`PlatformDispatcher.onError`](https://docs.flutter.dev/testing/errors#errors-not-caught-by-flutter) to report errors not caught by flutter.
28-
- Prior to Flutter 3.3, the SDK runs `appRunner` callback inside of [`runZonedGuarded`](https://api.flutter.dev/flutter/dart-async/runZonedGuarded.html) to report errors not caught by flutter.
26+
- The SDK already runs your init `callback` on an error handler, such as [`runZonedGuarded`](https://api.flutter.dev/flutter/dart-async/runZonedGuarded.html) on Flutter versions prior to `3.3`, or [`PlatformDispatcher.onError`](https://api.flutter.dev/flutter/dart-ui/PlatformDispatcher/onError.html) on Flutter versions 3.3 and higher, so that errors are automatically captured.
2927

3028
```dart
3129
import 'package:flutter/widgets.dart';
@@ -151,8 +149,6 @@ Or [try out the Alpha version of the Sentry Dart Plugin](https://github.com/gets
151149

152150
- Use a `try/catch` block.
153151
- Use a `catchError` block for `Futures`, examples on [dart.dev](https://dart.dev/guides/libraries/futures-error-handling).
154-
- Starting with Flutter 3.3 the SDK uses [`PlatformDispatcher.onError`](https://docs.flutter.dev/testing/errors#errors-not-caught-by-flutter) to capture errors automatically.
155-
- Prior to Flutter 3.3 the SDK runs `appRunner` callback inside [`runZonedGuarded`](https://api.flutter.dev/flutter/dart-async/runZonedGuarded.html) to capture errors automatically.
156152
- [Flutter-specific errors](https://api.flutter.dev/flutter/foundation/FlutterError/onError.html) are captured automatically.
157153
- [Current Isolate errors](https://api.flutter.dev/flutter/dart-isolate/Isolate/addErrorListener.html) which is the equivalent of a main or UI thread, are captured automatically (Only for non-Web Apps).
158154
- For your own `Isolates`, add an [Error Listener](https://api.flutter.dev/flutter/dart-isolate/Isolate/addErrorListener.html) and call `Sentry.captureException`.

0 commit comments

Comments
 (0)