Created
April 9, 2022 13:05
-
-
Save MarcinHradowicz/63c56562ed44763846c2917d19d93452 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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