File tree Expand file tree Collapse file tree 4 files changed +6
-16
lines changed
Expand file tree Collapse file tree 4 files changed +6
-16
lines changed Original file line number Diff line number Diff line change @@ -39,22 +39,6 @@ Future<void> bootstrap(
3939 SettingsBloc settingsBloc,
4040 ) builder,
4141) async {
42- final widgetFlutterBindingSpan = span.startChild (
43- 'initialize SentryWidgetsFlutterBinding' ,
44- description: 'calls SentryWidgetsFlutterBinding.ensureInitialized()' ,
45- );
46-
47- // Ensure SentryWidgetsFlutterBinding is initialized
48- try {
49- SentryWidgetsFlutterBinding .ensureInitialized ();
50- } catch (e) {
51- widgetFlutterBindingSpan
52- ..throwable = e
53- ..status = const SpanStatus .notFound ();
54- } finally {
55- await widgetFlutterBindingSpan.finish ();
56- }
57-
5842 FlutterError .onError = (details) {
5943 Sentry .captureException (
6044 details,
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ Future<void> main() async {
99 // Read .env file
1010 await dotenv.load (fileName: 'assets/.env' );
1111
12+ SentryWidgetsFlutterBinding .ensureInitialized ();
13+
1214 await SentryFlutter .init (
1315 (options) {
1416 options
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ Future<void> main() async {
99 // Read .env file
1010 await dotenv.load (fileName: 'assets/.env' );
1111
12+ SentryWidgetsFlutterBinding .ensureInitialized ();
13+
1214 await SentryFlutter .init (
1315 (options) {
1416 options
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ Future<void> main() async {
99 // Read .env file
1010 await dotenv.load (fileName: 'assets/.env' );
1111
12+ SentryWidgetsFlutterBinding .ensureInitialized ();
13+
1214 await SentryFlutter .init (
1315 (options) {
1416 options
You can’t perform that action at this time.
0 commit comments