Created
October 4, 2023 13:58
-
-
Save hahouari/434abc7627d92c93272da31ce2dce50f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... | |
// ... 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