Skip to content

Instantly share code, notes, and snippets.

@egorikftp
Created August 8, 2021 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save egorikftp/0dabcc0d21817b1ad3013985bf0ed6e1 to your computer and use it in GitHub Desktop.
Save egorikftp/0dabcc0d21817b1ad3013985bf0ed6e1 to your computer and use it in GitHub Desktop.
@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