Your app uses deprecated APIs or parameters for edge-to-edge

My play console showing this warning anyone can help me to sort this?

I am also getting these warnings. In my case, I could get rid of them being removing the following from main.dart:

  SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
  SystemChrome.setSystemUIOverlayStyle(
    const SystemUiOverlayStyle(
      systemNavigationBarColor: Colors.transparent,
      statusBarColor: Colors.transparent,
      systemStatusBarContrastEnforced: false
    )
  );

But then I found “edge-to-edge” was no longer working on older versions of Android. So I’m keeping the code and putting up with the console warnings for now.

1 Like

This is because edge-to-edge layout will be forced in future Android updates. I recommend taking the time to apply edge-to-edge in your project. Note, though, that you have to be sure that all screens appear correctly on the phone because edge-to-edge forces the screen to stretch behind System bar.

1 Like