Skip to content

Commit 9d13808

Browse files
committed
fix samples
1 parent 313ebc2 commit 9d13808

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

flutter/example/lib/main.dart

+7-11
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ final _channel = const MethodChannel('example.flutter.sentry.io');
2222

2323
Future<void> main() async {
2424
await setupSentry(() => runApp(
25-
// SentryScreenshotWidget(
26-
SentryUserInteractionWidget(
27-
child: DefaultAssetBundle(
28-
bundle: SentryAssetBundle(enableStructuredDataTracing: true),
29-
child: MyApp(),
25+
SentryScreenshotWidget(
26+
child: SentryUserInteractionWidget(
27+
child: DefaultAssetBundle(
28+
bundle: SentryAssetBundle(enableStructuredDataTracing: true),
29+
child: MyApp(),
30+
),
3031
),
3132
),
3233
));
@@ -46,7 +47,7 @@ Future<void> setupSentry(AppRunner appRunner) async {
4647
options.reportSilentFlutterErrors = true;
4748
options.enableNdkScopeSync = true;
4849
options.enableUserInteractionTracing = true;
49-
// options.attachScreenshot = true;
50+
options.attachScreenshot = true;
5051

5152
// We can enable Sentry debug logging during development. This is likely
5253
// going to log too much for your app, but can be useful when figuring out
@@ -212,11 +213,6 @@ class MainScaffold extends StatelessWidget {
212213
onPressed: () async => await makeWebRequestWithDio(context),
213214
child: const Text('Dio: Web request'),
214215
),
215-
ElevatedButton(
216-
key: Key('dio_web_request_2'),
217-
onPressed: () async => await makeWebRequestWithDio(context),
218-
child: const Text('Dio: Web request 2'),
219-
),
220216
ElevatedButton(
221217
key: Key('print_breadcrumb'),
222218
onPressed: () {

0 commit comments

Comments
 (0)