Skip to content

Instantly share code, notes, and snippets.

@egorikftp
Created Aug 8, 2021
Embed
What would you like to do?
@ExperimentalMaterialApi
@Stable
class BottomSheetState(
initialValue: BottomSheetValue,
animationSpec: AnimationSpec<Float> = SwipeableDefaults.AnimationSpec,
confirmStateChange: (BottomSheetValue) -> Boolean = { true }
) : SwipeableState<BottomSheetValue>(
initialValue = initialValue,
animationSpec = animationSpec,
confirmStateChange = confirmStateChange
) {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment