diff --git a/flutter/example/lib/main.dart b/flutter/example/lib/main.dart index 61c05ab741..4e39b96db2 100644 --- a/flutter/example/lib/main.dart +++ b/flutter/example/lib/main.dart @@ -231,9 +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()',