Skip to content

Instantly share code, notes, and snippets.

@egorikftp
Created August 8, 2021 19:22
Show Gist options
  • Save egorikftp/283697750e5d04d5f716a96e53146da0 to your computer and use it in GitHub Desktop.
Save egorikftp/283697750e5d04d5f716a96e53146da0 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 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