Luka
09/24/2021, 1:54 PMRow(modifier = modifier) {
Box(
modifier = Modifier.clickable { onConfirmClicked.invoke() },
contentAlignment = Alignment.CenterStart
) {
Text(
text = stringResource(id = R.string.confirm), textAlign = TextAlign.Left,
fontWeight = FontWeight.Medium,
fontSize = 16.sp,
color = colorResource(id = R.color.red)
)
}
Box(
modifier = Modifier
.padding(start = 32.dp)
.clickable { onRemoveClicked.invoke() },
) {
Text(
text = stringResource(id = R.string.dont_repeat),
fontWeight = FontWeight.Medium,
fontSize = 16.sp,
color = colorResource(id = R.color.red_clickable_link)
)
}
if (showEditButton) {
Box(
modifier = Modifier
.padding(start = 32.dp)
.clickable { onEditClicked.invoke() },
) {
Text(
text = stringResource(id = R.string.edit),
fontWeight = FontWeight.Medium,
fontSize = 16.sp,
color = colorResource(id = R.color.red_clickable_link)
)
}
}
}
Csaba Kozák
09/24/2021, 1:56 PMFlowRow
for this purpose: https://google.github.io/accompanist/flowlayout/Luka
09/24/2021, 2:00 PM