-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Keyboard (IME) animation support (#142)
* Initial sample for IME Animations * Initial support for WindowInsetsAnimations * Add new imePadding() and navigationBarsWithImePadding() * Improve visuals of the sample * Tidy up updating of insets * Optimize navigationBarsWithImePadding() Currently we create a new Modifier instance on each inset value change since we compute a new insets inside of composed { }, which isn't ideal. Instead, we have now moved the computation within the layout block, which means only the layout block will be restarted on composition changes. * Add fast-path for coerceEachDimensionAtLeast() * Extract WindowInsetsAnimations impl to class Also added a enable/disable flag to ProvideWindowInsets * Extract IME Animation support to new functions These are now behind an experimental flag * Add animation support for remaining Insets types
- Loading branch information
1 parent
8807fc8
commit cc0b94c
Showing
9 changed files
with
548 additions
and
79 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.