Skip to content

Commit

Permalink
Add default value to collapsing top bar state parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
flaringapp committed Jul 16, 2024
1 parent 2ba099e commit 79e79ec
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ import kotlin.math.roundToInt
* - transformations based on [CollapsingTopBarState.layoutInfo]
* - custom layout logic with [CollapsingTopBarNestedCollapseElement]
*
* @param state the state that manages this top bar.
* @param modifier the [Modifier] to be applied to this top bar.
* @param state the state that manages this top bar.
* @param clipToBounds the flag whether or not to automatically clip top bar [content] to the
* actual collapse height.
*
Expand All @@ -68,8 +68,8 @@ import kotlin.math.roundToInt
*/
@Composable
fun CollapsingTopBar(
state: CollapsingTopBarState,
modifier: Modifier = Modifier,
state: CollapsingTopBarState = rememberCollapsingTopBarState(),
clipToBounds: Boolean = true,
content: @Composable CollapsingTopBarScope.() -> Unit,
) {
Expand Down

0 comments on commit 79e79ec

Please sign in to comment.