Skip to content

fix(android): enable edge-to-edge for Android 15 / API 35 compliance - #249

Closed
richardthe3rd with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-edge-to-edge-display-issue
Closed

fix(android): enable edge-to-edge for Android 15 / API 35 compliance#249
richardthe3rd with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-edge-to-edge-display-issue

Conversation

Copilot AI commented May 10, 2026

Copy link
Copy Markdown
Contributor

Android 15 mandates edge-to-edge for apps targeting SDK 35. The app was missing the explicit opt-in, triggering a Google Play warning.

Changes

  • MainActivity.kt — overrides onCreate and calls enableEdgeToEdge() before super.onCreate(), making system bars transparent and providing backward compatibility down to Android 9
class MainActivity : FlutterActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        enableEdgeToEdge()
        super.onCreate(savedInstanceState)
    }
}

No Dart-side changes needed — Flutter's Scaffold, AppBar, and NavigationBar already consume window insets via MediaQuery, so layout is unaffected.

  • android/README.md — documents the fix and rationale

Copilot AI changed the title [WIP] Investigate edge-to-edge display issue for Android 15 fix(android): enable edge-to-edge for Android 15 / API 35 compliance May 10, 2026
Copilot AI requested a review from richardthe3rd May 10, 2026 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Edge-to-edge may not display for all users

2 participants