mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-18 06:47:02 +05:30
Fix ripple indication
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
28fd3f6f7e
commit
3d42671277
1 changed files with 3 additions and 2 deletions
|
@ -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(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue