Skip to content

Instantly share code, notes, and snippets.

@egorikftp
Created August 8, 2021 20:02
Embed
What would you like to do?
@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