mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-17 22:37:03 +05:30
Add ripple indication
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
bfdc4b3183
commit
15d8f61e97
1 changed files with 5 additions and 1 deletions
|
@ -1,11 +1,13 @@
|
|||
package dev.msfjarvis.todo.ui
|
||||
|
||||
import androidx.compose.foundation.Text
|
||||
import androidx.compose.foundation.clickable
|
||||
import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.lazy.LazyItemScope
|
||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||
import androidx.compose.material.Card
|
||||
import androidx.compose.material.ripple.RippleIndication
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.text.TextStyle
|
||||
|
@ -17,7 +19,9 @@ import dev.msfjarvis.todo.data.TodoItem
|
|||
@Composable
|
||||
fun LazyItemScope.TodoRowItem(item: TodoItem) {
|
||||
Row(
|
||||
modifier = Modifier.padding(vertical = 8.dp).fillParentMaxWidth(),
|
||||
modifier = Modifier.padding(vertical = 8.dp)
|
||||
.fillParentMaxWidth()
|
||||
.clickable(onClick = {}, indication = RippleIndication()),
|
||||
) {
|
||||
Card(
|
||||
shape = RoundedCornerShape(8.dp),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue