I have a basic row in compose.
Row(
modifier = Modifier
.fillMaxWidth()
.background(MaterialTheme.colors.background)
.clickable { click.invoke() }
) {
Text(
text = stringResource(id = item.first),
textAlign = TextAlign.Start,
color = MaterialTheme.colors.onPrimary,
modifier = Modifier.padding(16.dp)
)
}
When its clicked the color is grey. I would like to change this to a custom color but I can't seem to figure out how.