本文主要是介绍flutter 设置启屏页 flutter_native_splash 坑记录,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
flutter_native_splash | Flutter packageCustomize Flutter's default white native splash screen with background color and splash image. Supports dark mode, full screen, and more.https://pub.dev/packages/flutter_native_splash
发现一直白屏
原因是 代码中 下面3行没有加
runApp 调用之前
WidgetsBinding widgetsBinding = WidgetsFlutterBinding.ensureInitialized();
FlutterNativeSplash.preserve(widgetsBinding: widgetsBinding);
FlutterNativeSplash.remove();
这篇关于flutter 设置启屏页 flutter_native_splash 坑记录的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!