I’m following this guide to add compose to my existing app.. It says
Make sure you're using Kotlin 1.5.21 in your project.
Will Kotlin version
11 months ago
Would anyone be able to provide some guidance on how to implement an animated expanding/collapsing navigation rail similar to what is shown here (which is from the Navigation drawer section of this page)?The issue that I'm running into is related to how the text in the FAB or list items behaves when the rail is collapsing. As you can see in the animation, the desired effect is to have the text (i.e. "Compose" and "Inbox") fade out as the rail collapses with the result being that only the icons are visible. However, in practice, since the FAB and list items are contained within the rail, the text gets wrapped during the animation as the width of the rail animates to the collapsed size. The only thing I have found to "work" is to set the
wrapContentWidth(unbounded = true)
modifier on the
composable, however, this has the side-effect of never wrapping the text, which I don't necessarily want. I started looking into creating a transition and using
Just updated to Accompanist 0.19.0, and I have an issue with the reworked HorizontalPager: my items have now a start/end padding to fill the pager width, instead of only keeping the item width. Anyone know how to fix this ?