2

My app works perfectly in DEBUG mode. But when I create a release APK or run in release mode I get an only white screen after starting the app. After some trying, I detected that the problem is in method, that I call after runApp(); But what is the problem?

void handleAppLifecycleState() {
  SystemChannels.lifecycle.setMessageHandler((msg) async {
    if (msg == "AppLifecycleState.resumed") {
      await updateStatusBar();
    }
    return Future.value(msg);
  });
}

1 Answers1

2

I thing your problem is your gradle version. a was same problem and I solved it with change gradle version to 3.5.4.

dependencies {
        classpath "com.android.tools.build:gradle:3.5.4"
     ...

    }
Aslami.dev
  • 880
  • 8
  • 19