File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
configuration/lib/environment Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11import 'dart:async' ;
22import 'dart:io' ;
33
4- import 'package:configuration/utility/style/style.dart' ;
54import 'package:configuration/environment/build_config.dart' ;
65import 'package:configuration/network/http_overrides.dart' ;
6+ import 'package:configuration/utility/style/style.dart' ;
77import 'package:flutter/material.dart' ;
88import 'package:flutter/services.dart' ;
99
@@ -13,7 +13,7 @@ abstract class Env {
1313 }
1414
1515 _init () {
16- runZoned (() async {
16+ runZonedGuarded (() async {
1717 WidgetsFlutterBinding .ensureInitialized ();
1818 await const MethodChannel ('flavor' )
1919 .invokeMethod <String >('getFlavor' )
@@ -27,8 +27,8 @@ abstract class Env {
2727 final StatefulWidget app = await onCreate ();
2828
2929 runApp (app);
30- }, onError : ( Object obj, StackTrace stack) {
31- print (obj );
30+ }, (error, stack) {
31+ print (error );
3232 print (stack);
3333 });
3434 }
You can’t perform that action at this time.
0 commit comments