Skip to content

Instantly share code, notes, and snippets.

@MarcinHradowicz
Created April 9, 2022 13:05
Show Gist options
  • Save MarcinHradowicz/63c56562ed44763846c2917d19d93452 to your computer and use it in GitHub Desktop.
Save MarcinHradowicz/63c56562ed44763846c2917d19d93452 to your computer and use it in GitHub Desktop.
Future<void> main() async {
await initApp();
runApp(const MyApp());
}
initApp() {
WidgetsBinding widgetsBinding = WidgetsFlutterBinding.ensureInitialized();
FlutterNativeSplash.preserve(widgetsBinding: widgetsBinding);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment