如何减少 Flutter launch_background.xml 显示时间?
how to reduce Flutter launch_background.xml display time?
我已经在 launch_background.xml 文件中设置了启动画面的图像。切换到下一页大约需要 5 秒。如何减少显示时间。
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<!-- <item android:drawable="@android:color/white" />-->
<!-- You can insert your own image assets here -->
<item>
<bitmap
android:gravity="center"
android:src="@mipmap/splash_screen" />
</item>
</layer-list>
请建议如何减少显示时间?
我认为您 运行正在调试模式下运行应用程序,因此需要一些时间。我会建议您 运行 处于发布模式的应用程序。通过 运行在终端中执行此命令。
flutter run --release
By default, flutter run compiles to debug mode. Your IDE supports this mode. Android Studio, for example, provides a Run > Debug… menu option, as well as a green bug icon overlayed with a small triangle on the project page.
阅读更多关于 Flutter's build modes here
我已经在 launch_background.xml 文件中设置了启动画面的图像。切换到下一页大约需要 5 秒。如何减少显示时间。
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<!-- <item android:drawable="@android:color/white" />-->
<!-- You can insert your own image assets here -->
<item>
<bitmap
android:gravity="center"
android:src="@mipmap/splash_screen" />
</item>
</layer-list>
请建议如何减少显示时间?
我认为您 运行正在调试模式下运行应用程序,因此需要一些时间。我会建议您 运行 处于发布模式的应用程序。通过 运行在终端中执行此命令。
flutter run --release
By default, flutter run compiles to debug mode. Your IDE supports this mode. Android Studio, for example, provides a Run > Debug… menu option, as well as a green bug icon overlayed with a small triangle on the project page.
阅读更多关于 Flutter's build modes here