Skip to content

[Android] Use EdgeToEdge.enableEdgeToEdge to set edge-to-edge mode instead of View flags #165328

@camsim99

Description

@camsim99

Currently, to enable edge-to-edge, we use deprecated View flags (see source). These have long been deprecated (this is part of #98602), but the encouraged way to set edge-to-edge mode is EdgeToEdge.enableEdgeToEdge.

We should swap out our old method with EdgeToEdge.enableEdgeToEdge because users may see confusing warnings about not having enabled edge to edge on Android < 15 when they actually do set SystemUiMode.edgeToEdge to put their app in edge-to-edge mode. I believe the warning is coming up because we do not use SystemUiMode.edgeToEdge exactly.

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listengineflutter/engine repository. See also e: labels.platform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions