@@ -8,12 +8,12 @@ https://sentry.io error tracking service.
88
99## Versions
1010
11+ Versions ` 3.0.0 ` and higher support Flutter for mobile, Flutter for web,
12+ command-line, desktop, and AngularDart.
13+
1114` >=2.0.0 <3.0.0 ` is the range of versions that support Flutter for mobile and
1215Dart VM only.
1316
14- Versions ` 3.0.0 ` and higher supports Flutter for mobile, Flutter for web,
15- command-line, and AngularDart.
16-
1717Versions ` <2.0.0 ` are deprecated.
1818
1919## Usage
@@ -24,7 +24,7 @@ Add `sentry` dependency to your `pubspec.yaml`:
2424
2525``` yaml
2626dependencies :
27- sentry : >=2 .0.0 <3 .0.0
27+ sentry : >=3 .0.0 <4 .0.0
2828` ` `
2929
3030In your Dart code, import ` package:sentry/sentry.dart` and create a `SentryClient` using the DSN issued by Sentry.io:
@@ -54,7 +54,7 @@ main() async {
5454
5555- Use a `try/catch` block, like in the example above.
5656- Create a `Zone` with an error handler, e.g. using [runZoned][run_zoned].
57-
57+
5858 ` ` ` dart
5959 var sentry = SentryClient(dsn: "https://...");
6060 // Run the whole app in a zone to capture all uncaught errors.
@@ -75,7 +75,7 @@ main() async {
7575 );
7676 ` ` `
7777- For Flutter-specific errors (such as layout failures), use [FlutterError.onError][flutter_error]. For example :
78-
78+
7979 ` ` ` dart
8080 var sentry = SentryClient(dsn: "https://...");
8181 FlutterError.onError = (details, {bool forceReport = false}) {
@@ -92,7 +92,7 @@ main() async {
9292 }
9393 };
9494 ` ` `
95- - Use `Isolate.current.addErrorListener` to capture uncaught errors
95+ - Use `Isolate.current.addErrorListener` to capture uncaught errors
9696 in the root zone.
9797
9898[run_zoned] : https://api.dartlang.org/stable/dart-async/runZoned.html
0 commit comments