Skip to content

Instantly share code, notes, and snippets.

@hahouari
Created October 4, 2023 13:58
Show Gist options
  • Save hahouari/434abc7627d92c93272da31ce2dce50f to your computer and use it in GitHub Desktop.
Save hahouari/434abc7627d92c93272da31ce2dce50f to your computer and use it in GitHub Desktop.
// ...
// ... The previous segment
// ...
Column(modifier = modifier.systemBarsPadding()) {
Row(
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.SpaceBetween,
modifier = Modifier
.fillMaxWidth()
.height(64.dp)
.padding(horizontal = 32.dp, vertical = 8.dp)
) {
Text(text = "Select directory")
OutlinedButton(
contentPadding = PaddingValues(vertical = 15.dp, horizontal = 28.dp),
onClick = { /* Something to do.. */ }
) {
Text(text = "Select")
}
}
Row(
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.SpaceBetween,
modifier = Modifier
.fillMaxWidth()
.height(64.dp)
.indication(interactionSource, indication) // <--- This line is soooo important :)
.padding(horizontal = 32.dp, vertical = 8.dp),
) {
Text(text = "Clear Cache")
OutlinedButton(
contentPadding = PaddingValues(vertical = 15.dp, horizontal = 28.dp),
onClick = { /* Something to do.. */ }
) {
Text(text = "Clear")
}
}
Row(
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.SpaceBetween,
modifier = Modifier
.fillMaxWidth()
.height(64.dp)
.padding(horizontal = 32.dp, vertical = 8.dp)
) {
Text(text = "Another Example")
Text(text = "Do nothing")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment