Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 767 Bytes

foldable-toolbar.md

File metadata and controls

28 lines (20 loc) · 767 Bytes

Foldable Toolbar

A scrollable layout with a foldable toolbar effect.

ScrollableWithFoldableToolbar(
  toolbarHeight = toolbarHeightDp,
  topBar = { /* top bar */ },
  content = {  /* screen content */},
  modifier = modifier,
  isToolbarVisible = isToolbarVisible,
)

Required:

  • toolbarHeight [Dp]: The height of the toolbar.
  • topBar [Composable]: The composable representing the top bar content.
  • content [Composable]: The composable representing the scrollable content.

Optional:

  • modifier [Modifier]: The modifier to apply to the entire composable.
  • isToolbarVisible [Boolean]: Flag indicating whether the toolbar is initially visible.

Preview

foldable toolbar sample