StickyBottomSheet

Bottom sheet dialog fragment with sticky button on bottom of dialog.

APACHE-2.0 License

Stars
5

StickyBottomSheet

Bottom sheet dialog fragment with sticky button on bottom of dialog.

I. Use two ComposeViews

  • One ComposeView is used to display LazyColumn content.
  • One ComposeView is used to display the bottom button.

https://github.com/user-attachments/assets/9eb3371e-0520-4e5b-b212-63c62e55e4f7

II. Use View based

Full View based implementation.

https://github.com/user-attachments/assets/065ede9c-797e-4db4-af42-ab6c3a66d1b4

III. Use one ComposeView

One ComposeView is used to display the whole content (LazyColumn content and the bottom button). This version has a problem: the button update is not smooth (lags) when we expand/collapse the bottom sheet.

https://github.com/user-attachments/assets/d49eef7a-b754-4c8b-83e2-a1311b65d656