Skip to content

Instantly share code, notes, and snippets.

@egorikftp
Created August 8, 2021 20:02
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/fb490ef77e8586833a04fc4c87bc33de to your computer and use it in GitHub Desktop.
Save egorikftp/fb490ef77e8586833a04fc4c87bc33de to your computer and use it in GitHub Desktop.
@Composable
@ExperimentalMaterialApi
fun DebugScreen(
scaffoldState: BottomSheetScaffoldState
) {
Column(
modifier = Modifier.fillMaxWidth(),
verticalArrangement = Arrangement.Top,
horizontalAlignment = Alignment.CenterHorizontally
) {
val fraction = scaffoldState.bottomSheetState.progress.fraction
val targetValue = scaffoldState.bottomSheetState.targetValue
val currentValue = scaffoldState.bottomSheetState.currentValue
Text("fraction = $fraction")
Text("target = $targetValue")
Text("current = $currentValue")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment