Skip to content

Commit

Permalink
fixup! Fix bottom sheet not behaving properly (closes #309)
Browse files Browse the repository at this point in the history
  • Loading branch information
25huizengek1 committed May 31, 2024
1 parent a20a4b9 commit bf99c35
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,19 +132,16 @@ class BottomSheetState internal constructor(
}

private fun collapse(spec: AnimationSpec<Dp> = spring()) {
println("collapse")
onAnchorChanged(Anchor.Collapsed)
deferAnimateTo(collapsedBound, spec)
}

private fun expand(spec: AnimationSpec<Dp> = spring()) {
println("expand")
onAnchorChanged(Anchor.Expanded)
deferAnimateTo(expandedBound, spec)
}

private fun dismiss(spec: AnimationSpec<Dp> = spring()) {
println("dismiss")
onAnchorChanged(Anchor.Dismissed)
deferAnimateTo(dismissedBound, spec)
}
Expand Down

0 comments on commit bf99c35

Please sign in to comment.