Skip to content

Instantly share code, notes, and snippets.

@CostaFot
Created December 5, 2023 02:40
Show Gist options
  • Save CostaFot/10ef61765d236d13bb051cd9c6dbe7ee to your computer and use it in GitHub Desktop.
Save CostaFot/10ef61765d236d13bb051cd9c6dbe7ee to your computer and use it in GitHub Desktop.
val layoutDirection = LocalLayoutDirection.current
Box(
modifier = Modifier
.fillMaxSize()
.padding(
start = paddingValues.calculateStartPadding(layoutDirection),
end = paddingValues.calculateEndPadding(layoutDirection),
bottom = paddingValues.calculateBottomPadding(),
)
) {
var isFullyExpanded by remember {
mutableStateOf(false)
}
Column(
modifier = Modifier.fillMaxSize()
) {
val statusBarHeight = WindowInsets.statusBars.getTop(LocalDensity.current).pxToDp()
BoxWithConstraints(
modifier = Modifier.fillMaxSize()
) {
// TODO draggable box
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment