Hey flutterflow community ,
I have been facing this issue while adding my app into production ( screenshot attached ) - Edge-to-edge may not display for all users
From Android 15, all apps targeting SDK 35 will display edge-to-edge by default. Apps targeting SDK 35 should handle insets to make sure that their app displays correctly on Android 15 and later. We recommend investigating this issue and allowing time to test edge-to-edge on your app and make the required updates to your code. Alternatively, call enableEdgeToEdge() for Kotlin or EdgeToEdge.enable() for Java for backward compatibility.
According to my knowledge , this is an update applicable android 15 < , and for SDK 35 <
Some solutions that i am not sure about :
1 . A solution to this could be enabling 'Safe Area' for all the scaffolds and pages
2. Chatgpt provided with this code snippet :
import android.os.Build
import android.view.WindowInsetsController
import io.flutter.embedding.android.FlutterActivity
class MainActivity : FlutterActivity() {
override fun onPostResume() {
super.onPostResume()
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
window.setDecorFitsSystemWindows(false)
val controller = window.insetsController
controller?.systemBarsBehavior = WindowInsetsController.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE
}
}
}
But I add apps into play store through the inbuild "Deploy to Play Store' feature in flutterflow
So i do not want to build apk's and add manual codes such as the above solution
Can anyone help me out by giving a better solution or guide me through this ?