Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flutter: change widget to SentryWidget #8993

Merged
merged 3 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ Before starting, ensure:

### 1. Wrap root widget

Wrap your root widget with `SentryUserInteractionWidget`:
Wrap your root widget with `SentryWidget`:

```dart
Future<void> main2() async {
Future<void> main() async {
await SentryFlutter.init(
// Configure your options
(options) => options.dsn = '___DSN___',
appRunner: () => runApp(SentryUserInteractionWidget(child: MyApp())),
appRunner: () => runApp(SentryWidget(child: MyApp())),
);
}
```
Expand Down Expand Up @@ -91,7 +91,7 @@ import 'package:sentry_flutter/sentry_flutter.dart';
Future<void> main() async {
await SentryFlutter.init(
(options) => options.enableUserInteractionTracing = false,
appRunner: () => runApp(SentryUserInteractionWidget(child: MyApp())),
appRunner: () => runApp(SentryWidget(child: MyApp())),
);
}
```
Expand All @@ -108,7 +108,7 @@ import 'package:sentry_flutter/sentry_flutter.dart';
Future<void> main() async {
await SentryFlutter.init(
(options) => options.enableUserInteractionBreadcrumbs = false,
appRunner: () => runApp(SentryUserInteractionWidget(child: MyApp())),
appRunner: () => runApp(SentryWidget(child: MyApp())),
);
}
```
Expand All @@ -125,7 +125,7 @@ import 'package:sentry_flutter/sentry_flutter.dart';
Future<void> main() async {
await SentryFlutter.init(
(options) => options.sendDefaultPii = true,
appRunner: () => runApp(SentryUserInteractionWidget(child: MyApp())),
appRunner: () => runApp(SentryWidget(child: MyApp())),
);
}
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Future<void> main() async {
options.attachScreenshot = true;
},
appRunner: () => runApp(
// Wrap your app widget with the [SentryScreenshotWidget] widget.
SentryScreenshotWidget(
// Wrap your app widget with the [SentryWidget] widget.
SentryWidget(
child: MyApp(),
),
),
Expand Down
Loading