Fix ripple indication

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-08-25 22:17:47 +05:30
parent 28fd3f6f7e
commit 3d42671277
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

@ -29,13 +29,14 @@ fun LazyItemScope.WireGuardItem(item: TodoItem) {
var checked by remember { mutableStateOf(false) } var checked by remember { mutableStateOf(false) }
Row( Row(
modifier = Modifier modifier = Modifier
.clickable(onClick = { checked = !checked }, indication = RippleIndication())
.padding(vertical = 8.dp) .padding(vertical = 8.dp)
.fillParentMaxWidth(), .fillParentMaxWidth(),
) { ) {
Card( Card(
shape = RoundedCornerShape(8.dp), shape = RoundedCornerShape(8.dp),
modifier = Modifier.fillParentMaxWidth(), modifier = Modifier
.clickable(onClick = { checked = !checked }, indication = RippleIndication())
.fillParentMaxWidth(),
backgroundColor = MaterialTheme.colors.secondary backgroundColor = MaterialTheme.colors.secondary
) { ) {
ListItem( ListItem(