@@ -22,11 +22,12 @@ final _channel = const MethodChannel('example.flutter.sentry.io');
22
22
23
23
Future <void > main () async {
24
24
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
+ ),
30
31
),
31
32
),
32
33
));
@@ -46,7 +47,7 @@ Future<void> setupSentry(AppRunner appRunner) async {
46
47
options.reportSilentFlutterErrors = true ;
47
48
options.enableNdkScopeSync = true ;
48
49
options.enableUserInteractionTracing = true ;
49
- // options.attachScreenshot = true;
50
+ options.attachScreenshot = true ;
50
51
51
52
// We can enable Sentry debug logging during development. This is likely
52
53
// going to log too much for your app, but can be useful when figuring out
@@ -212,11 +213,6 @@ class MainScaffold extends StatelessWidget {
212
213
onPressed: () async => await makeWebRequestWithDio (context),
213
214
child: const Text ('Dio: Web request' ),
214
215
),
215
- ElevatedButton (
216
- key: Key ('dio_web_request_2' ),
217
- onPressed: () async => await makeWebRequestWithDio (context),
218
- child: const Text ('Dio: Web request 2' ),
219
- ),
220
216
ElevatedButton (
221
217
key: Key ('print_breadcrumb' ),
222
218
onPressed: () {
0 commit comments