From 72704f178d7751e5b3fa3cc6da7ada0018fd084d Mon Sep 17 00:00:00 2001 From: GIancarlo Buenaflor Date: Wed, 13 Dec 2023 15:36:24 +0100 Subject: [PATCH 1/2] fix ci --- flutter/example/lib/main.dart | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/flutter/example/lib/main.dart b/flutter/example/lib/main.dart index 61c05ab741..31e82d51f3 100644 --- a/flutter/example/lib/main.dart +++ b/flutter/example/lib/main.dart @@ -231,9 +231,11 @@ class MainScaffold extends StatelessWidget { buttonTitle: 'Dart: try catch', ), TooltipButton( - onPressed: () => Scaffold.of(context).showBottomSheet( - (context) => const Text('Scaffold error'), - ), + onPressed: () { + Scaffold.of(context).showBottomSheet( + (context) => const Text('Scaffold error'), + ); + }, text: 'Creates an uncaught exception and sends it to Sentry. This demonstrates how our flutter error integration catches unhandled exceptions.', buttonTitle: 'Flutter error : Scaffold.of()', From af2c1ea08f232bf182c3bc952f8ff7817c6252c9 Mon Sep 17 00:00:00 2001 From: GIancarlo Buenaflor Date: Wed, 13 Dec 2023 15:39:46 +0100 Subject: [PATCH 2/2] fix --- flutter/example/lib/main.dart | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/flutter/example/lib/main.dart b/flutter/example/lib/main.dart index 31e82d51f3..4e39b96db2 100644 --- a/flutter/example/lib/main.dart +++ b/flutter/example/lib/main.dart @@ -231,11 +231,8 @@ class MainScaffold extends StatelessWidget { buttonTitle: 'Dart: try catch', ), TooltipButton( - onPressed: () { - Scaffold.of(context).showBottomSheet( - (context) => const Text('Scaffold error'), - ); - }, + onPressed: () => Scaffold.of(context) + .showBottomSheet((context) => const Text('Scaffold error')), text: 'Creates an uncaught exception and sends it to Sentry. This demonstrates how our flutter error integration catches unhandled exceptions.', buttonTitle: 'Flutter error : Scaffold.of()',