I'm trying to create a Material 3 Floating Action Button in Jetpack Compose that expands into a Sheet with multiple options on click. I'm trying to achieve something like this:
The above example is from the Material 3 website. However, I haven't got any idea on how to implement such a thing. I tried searching for it online but almost all of the tutorials show transforming a FAB into multiple other FABs on click.
I tried modifying an ExtendedFloatingActionButton
but didn't get the results I wanted. I also tried using AnimatedContent
to animate between a normal FloatingActionButton
and a Column
with multiple Row
s containing other options but still couldn't get the required results.
Any guidance would be appreciated. Thanks in advance!