Skip to content

Commit 16c5ca0

Browse files
committed
update
1 parent 7f2ab85 commit 16c5ca0

File tree

4 files changed

+133
-246
lines changed

4 files changed

+133
-246
lines changed

flutter/example/lib/main.dart

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ Future<void> setupSentry(AppRunner appRunner, String dsn,
7171
options.attachScreenshot = true;
7272
options.screenshotQuality = SentryScreenshotQuality.low;
7373
options.attachViewHierarchy = true;
74-
options.enableTimeToFullDisplayTracing = true;
74+
options.enableTimeToFullDisplayTracing = false;
7575
options.spotlight = Spotlight(enabled: true);
7676
// We can enable Sentry debug logging during development. This is likely
7777
// going to log too much for your app, but can be useful when figuring out
7878
// configuration issues, e.g. finding out why your events are not uploaded.
79-
options.debug = true;
79+
options.debug = false;
8080

8181
options.maxRequestBodySize = MaxRequestBodySize.always;
8282
options.maxResponseBodySize = MaxResponseBodySize.always;
@@ -847,7 +847,11 @@ int loop(int val) {
847847
}
848848

849849
class SecondaryScaffold extends StatelessWidget {
850-
const SecondaryScaffold({Key? key}) : super(key: key);
850+
SecondaryScaffold({Key? key}) : super(key: key) {
851+
Timer(const Duration(seconds: 1), () {
852+
SentryFlutter.reportFullyDisplayed();
853+
});
854+
}
851855

852856
static Future<void> openSecondaryScaffold(BuildContext context) {
853857
return Navigator.push(
@@ -856,7 +860,7 @@ class SecondaryScaffold extends StatelessWidget {
856860
settings:
857861
const RouteSettings(name: 'SecondaryScaffold', arguments: 'foobar'),
858862
builder: (context) {
859-
return const SecondaryScaffold();
863+
return SecondaryScaffold();
860864
},
861865
),
862866
);

0 commit comments

Comments
 (0)