Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a way to determine dimensions of system UI #434

Closed
krisgiesing opened this issue Nov 17, 2015 · 3 comments
Closed

Add a way to determine dimensions of system UI #434

krisgiesing opened this issue Nov 17, 2015 · 3 comments
Labels
framework flutter/packages/flutter repository. See also f: labels.

Comments

@krisgiesing
Copy link
Contributor

This request came from Craig Hammel, asking for a way to determine the notification bar height on Android.

More generally, we want to provide a way to distinguish between the screen dimensions that can be drawn into, from the screen dimensions that are not obscured by other content. This includes system UI both on Android and on iOS, and potentially also overscan regions if we ever want to target TV. Note that the amount of overlap from system UI will depend on OS version and device type, so it's more complex than a hard coded constant.

@sethladd sethladd added the framework flutter/packages/flutter repository. See also f: labels. label Nov 17, 2015
@abarth
Copy link
Contributor

abarth commented Nov 17, 2015

This value is ui.window.padding.

@krisgiesing
Copy link
Contributor Author

Ah, I didn't know about ui.window.padding. Thanks, closing.

@github-actions
Copy link

github-actions bot commented Sep 7, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

No branches or pull requests

3 participants