在没有添加启动图启动时会出现长时间的白屏,为此加入启动图
1.先找到相应目录
在flutter项目下,找到android->app-main->res->drawable和drawable-v21 ->launch_background
然后修改里面的内容
<?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="@color/blue" />-->
<!-- You can insert your own image assets here -->
<item>
<bitmap
android:gravity="fill"
android:mipMap="true"
android:src="@mipmap/start"/>
</item>
</layer-list>
基中start为启动图 图片的名称
2.分别在mipmap目录中加入相应大小的启动图图片(上面提到的start 名字可改)