Home > Mobile >  My Flutter app showing white screen in release apk
My Flutter app showing white screen in release apk

Time:06-18

My flutter app runs fine on debug mode but when i create release apk its stuck on white screen.

[main screen]https://i.stack.imgur.com/hsMds.jpg

My Flutter app showing white screen in release apk

CodePudding user response:

I have same problem

this is my first screen https://i.stack.imgur.com/39B7t.jpg

this is my screen screen photo of debug apk https://i.stack.imgur.com/Lbc23.jpg

This is my second screen photo of release apk https://i.stack.imgur.com/GCvRY.jpg

Having this problem after updating my flutter doctor result

[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)

[√] Chrome - develop for the web

[√] Android Studio (version 2021.2)

[√] IntelliJ IDEA Community Edition (version 2021.2)

[√] VS Code (version 1.68.1)

[√] Connected device (4 available)

[√] HTTP Host Availability

thanks

CodePudding user response:

It is because in debug mode some issue gets logged in the terminal but it does not work in a release. to solve it properly check the logs in debug mode and it will show you some error generally a UI error related to expanded stuff.

  • Related