Skip to content

Conversation

@jwill
Copy link
Contributor

@jwill jwill commented Sep 19, 2024

Edge to edge is coming by default to Flutter 3.26+ (or thereabouts) when the targetSdk is raised to Android 15(API 35). In the meantime, it can be done manually by adjusting the theme and setting WindowCompat.setDecorFitsSystemWindows.

The fix is purely on the Android side. iOS is unaffected.

Sourced from https://developer.android.com/develop/ui/views/layout/edge-to-edge-manually

Fixes #1720 .

Pre-launch Checklist

  • I read the Flutter Style Guide recently, and have followed its advice.
  • I signed the CLA.
  • I read the Contributors Guide.
  • I updated/added relevant documentation (doc comments with ///).
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-devrel channel on Discord.

Edge to edge is coming by default to Flutter 3.26+ or so when the targetSdk is raised to Android 15(API 35). In the meantime, it can be done manually by adjusting the theme and setting `WindowCompat.setDecorFitsSystemWindows`.

Fixes flutter#1720 .
Copy link
Contributor

@domesticmouse domesticmouse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM once CI is green

@domesticmouse domesticmouse merged commit 78d3ea4 into flutter:main Sep 20, 2024
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.

material_3_demo shows black system navigation bar.

2 participants