Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.requiredSize
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.wrapContentHeight
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.verticalScroll
import androidx.compose.material3.ExperimentalMaterial3ExpressiveApi
import androidx.compose.material3.Icon
import androidx.compose.material3.MaterialTheme
Expand Down Expand Up @@ -61,6 +63,7 @@ fun AndroidBotColorPicker(
onBotColorSelected: (BotColor) -> Unit,
listBotColor: List<BotColor>,
) {
val scrollState = rememberScrollState()
Column(
modifier
.fillMaxWidth()
Expand All @@ -73,7 +76,9 @@ fun AndroidBotColorPicker(
FlowRow(
horizontalArrangement = Arrangement.spacedBy(12.dp),
verticalArrangement = Arrangement.spacedBy(12.dp),
modifier = Modifier.align(Alignment.CenterHorizontally),
modifier = Modifier
.align(Alignment.CenterHorizontally)
.verticalScroll(scrollState),
) {
listBotColors.forEach {
AndroidBotIndividualColor(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ fun AboutScreen(
Scaffold(
topBar = {
IconButton(
modifier = Modifier.safeDrawingPadding()
modifier = Modifier
.safeDrawingPadding()
.padding(16.dp),
shape = CircleShape,
colors = IconButtonDefaults.iconButtonColors(
Expand Down Expand Up @@ -162,7 +163,7 @@ fun AboutScreen(
)
}
Spacer(Modifier.size(48.dp))
FooterButtons()
FooterButtons(modifier = Modifier.padding(bottom = 8.dp))
}
}
} else {
Expand Down Expand Up @@ -196,17 +197,17 @@ fun AboutScreen(
stringResource(R.string.about_step3_label),
)
Spacer(modifier = Modifier.size(24.dp))
FooterButtons()
FooterButtons(modifier = Modifier.padding(bottom = 8.dp))
}
}
}
}
}

@Composable
private fun FooterButtons() {
private fun FooterButtons(modifier: Modifier = Modifier) {
val uriHandler = LocalUriHandler.current
Row {
Row(modifier) {
SecondaryOutlinedButton(
onClick = {
uriHandler.openUri("https://policies.google.com/terms")
Expand Down