Skip to content

Conversation

@ashnohe
Copy link
Contributor

@ashnohe ashnohe commented Sep 8, 2025

Add WindowInsetsRulers snippet to show how it helps when upstream parents cause excess padding in downstream children.

WindowInsetsRulers.mp4

Video shows problematic IME inset consumption caused by an upstream parent. Left: Extra padding is added underneath the TextField Composable when the IME expands as the navigation bar padding wasn't consumed by the parent. Right: Child is placed in the correct location using WindowInsetsRulers without having to fix the parent upstream.

@snippet-bot
Copy link

snippet-bot bot commented Sep 8, 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 riggaroo September 9, 2025 15:56
@ashnohe ashnohe marked this pull request as draft September 9, 2025 16:02
@ashnohe ashnohe marked this pull request as ready for review September 9, 2025 17:48
@ashnohe ashnohe merged commit 9efabdd into main Sep 10, 2025
5 checks passed
dturner added a commit that referenced this pull request Sep 23, 2025
* main: (74 commits)
  Add basic WindowInsetsRulers cases (#621)
  Adding shadows code snippets (#620)
  Update the wear preview code
  Update state based (#619)
  add WindowInsetsRulers snippet (#616)
  Migrate snippets from dac/training/wearables/tiles/screen-size (#617)
  Resolve warnings in the Wakelock code snippets (#615)
  Disabling some "unused" warnings (#610)
  Add android_wear_tile_version_fallback (#614)
  Add viewmodel screen for KMP (#613)
  Fix missing snippet (#612)
  Add KMP ViewModel snippets (#611)
  docs(modifiers): Add TODOs for inspectableProperties lint warnings (#589)
  Fix: Prevent memory leak from implicit SAM conversion (#588)
  Fix(gestures): Handle pointer events inside awaitPointerEventScope (#590)
  Lint: Use specialized state holders to avoid autoboxing (#591)
  Refactor: Rename Composable functions to follow naming conventions (#592)
  Refactor(text): Use KTX extension for isDigitsOnly check (#593)
  Refactor(SearchBar): Reorder modifier parameter to follow convention (#594)
  Add padding to avoid overwriting TimeText (#529)
  ...
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