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 snippet showing system bar protection. #464

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

ashnohe
Copy link
Contributor

@ashnohe ashnohe commented Feb 27, 2025

Status bar has a gradient behind it so scrolling content doesn't clash with the status bar icons. Navigation bar is translucent so that buttons are visible as content scrolls behind.

Status bar and nav bar will look mostly like this (except navigation bar color will be a bit whiter):

SystemBarProtection.mp4

Is this UI showing the scrolling list okay or should it be simplified?

Copy link

snippet-bot bot commented Feb 27, 2025

Here is the summary of changes.

You are about to add 1 region tag.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@ashnohe ashnohe requested a review from alexvanyo February 27, 2025 05:56
ashnohe and others added 3 commits March 4, 2025 22:23
Retrieve WindowInsets and Density in Composition. Calculate status bar height within lambda. Allows for height to be calculated when lambda is called. As a result, reduces number of recompositions.

Co-authored-by: Alex Vanyo <[email protected]>
Call lambda in the draw phase to reduce recompositions.

Co-authored-by: Alex Vanyo <[email protected]>
@ashnohe ashnohe requested a review from alexvanyo March 5, 2025 06:29
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.

2 participants