Skip to content

Instantly share code, notes, and snippets.

@egorikftp
Created August 8, 2021 19:22
Embed
What would you like to do?
@Composable
@ExperimentalMaterialApi
fun DebugScreen(
scaffoldState: BottomSheetScaffoldState
) {
Column(
modifier = Modifier.fillMaxWidth(),
verticalArrangement = Arrangement.Top,
horizontalAlignment = Alignment.CenterHorizontally
) {
val targetValue = scaffoldState.bottomSheetState.targetValue
val currentValue = scaffoldState.bottomSheetState.currentValue
Text("target = $targetValue")
Text("current = $currentValue")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment