google / accompanist

A collection of extension libraries for Jetpack Compose
https://google.github.io/accompanist
Apache License 2.0
7.45k stars 599 forks source link

Support for WindowInsetsAnimation #140

Closed sjmueller closed 3 years ago

sjmueller commented 3 years ago

With the introduction of Insets to accompanist, are there any plans to add support for WindowInsetsAnimation? This allows fine grain control and coordination of the keyboard animation (as described in this article):

I found some code that shows how to add the callback within MainActivity, but it's not a jetpack compose app and so the content property isn't available: https://github.com/siyehua/WindowInsetsAnimation/blob/a31ea8f5d73d29fcfcaa8f7386b66ed7297f8aea/app/src/main/java/com/example/myapplication/MainActivity.kt

chrisbanes commented 3 years ago

Hi Sam, yep it's something I'm already thinking about. Stay tuned.

chrisbanes commented 3 years ago

This was added 0.4.0.