Flutter app shows a black screen before loading the app

前端 未结 4 1234
抹茶落季
抹茶落季 2021-02-20 14:28

I have noticed this problem with flutter apps, when I open a flutter app from cold boot, I see a black screen popping before the actual app is loaded. I have seen the problem wi

4条回答
  •  庸人自扰
    2021-02-20 15:11

    It's not a bug. That's the way it behaves normally. You can replace the loading black screen with an image:

    In AndroidManifest.xml, here is where you can change your splash image.

           
    

    Find the files:

    android\app\src\main\res\drawable\launch_background.xml

    android\app\src\main\res\drawable-v21\launch_background.xml

    Change the files to add your own custom image:

    
        
    
    

    Your splash image should be stored in the drawable folders:

    android\app\src\main\res\drawable\splash_image.png

    app\src\main\res\drawable-v21\splash_image.png

提交回复
热议问题