Skip to content

Commit

Permalink
Fix for warning on launch
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed Sep 1, 2024
1 parent fcd5c8b commit fa07cb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,12 @@ class MyHttpOverrides extends HttpOverrides {
}

void main({bool isTesting = false}) async {
WidgetsFlutterBinding.ensureInitialized();

final prefs = await SharedPreferences.getInstance();
HttpOverrides.global =
MyHttpOverrides(prefs.getString(kSharedPrefHostOverride) ?? '');

WidgetsFlutterBinding.ensureInitialized();
_registerErrorHandlers();

final ConnectionStatusSingleton connectionStatus =
Expand Down

0 comments on commit fa07cb1

Please sign in to comment.