fix: Fix build

This commit is contained in:
Ahmad Ansori Palembani 2025-01-10 11:10:28 +07:00
parent c6da3325b3
commit 258708b038
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -547,11 +547,11 @@ fun enterAlwaysCollapsedScrollBehavior(
snapAnimationSpec: AnimationSpec<Float>? = spring(stiffness = Spring.StiffnessMediumLow),
flingAnimationSpec: DecayAnimationSpec<Float>? = rememberSplineBasedDecay()
): TopAppBarScrollBehavior {
return remember(state, canScroll, isAtTop, snapAnimationSpec, flingAnimationSpec) {
val (topHeightPx, totalHeightPx) = with(LocalDensity.current) {
CollapsedContainerHeight.toPx() to ExpandedContainerHeight.toPx()
}
val (topHeightPx, totalHeightPx) = with(LocalDensity.current) {
CollapsedContainerHeight.toPx() to ExpandedContainerHeight.toPx()
}
return remember(state, canScroll, isAtTop, snapAnimationSpec, flingAnimationSpec, topHeightPx, totalHeightPx) {
EnterAlwaysCollapsedScrollBehavior(
state = state,
snapAnimationSpec = snapAnimationSpec,