mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-18 06:47:02 +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
|
package dev.msfjarvis.todo.ui
|
||||||
|
|
||||||
import androidx.compose.foundation.Text
|
import androidx.compose.foundation.Text
|
||||||
|
import androidx.compose.foundation.clickable
|
||||||
import androidx.compose.foundation.layout.Row
|
import androidx.compose.foundation.layout.Row
|
||||||
import androidx.compose.foundation.layout.padding
|
import androidx.compose.foundation.layout.padding
|
||||||
import androidx.compose.foundation.lazy.LazyItemScope
|
import androidx.compose.foundation.lazy.LazyItemScope
|
||||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||||
import androidx.compose.material.Card
|
import androidx.compose.material.Card
|
||||||
|
import androidx.compose.material.ripple.RippleIndication
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
import androidx.compose.ui.text.TextStyle
|
import androidx.compose.ui.text.TextStyle
|
||||||
|
@ -17,7 +19,9 @@ import dev.msfjarvis.todo.data.TodoItem
|
||||||
@Composable
|
@Composable
|
||||||
fun LazyItemScope.TodoRowItem(item: TodoItem) {
|
fun LazyItemScope.TodoRowItem(item: TodoItem) {
|
||||||
Row(
|
Row(
|
||||||
modifier = Modifier.padding(vertical = 8.dp).fillParentMaxWidth(),
|
modifier = Modifier.padding(vertical = 8.dp)
|
||||||
|
.fillParentMaxWidth()
|
||||||
|
.clickable(onClick = {}, indication = RippleIndication()),
|
||||||
) {
|
) {
|
||||||
Card(
|
Card(
|
||||||
shape = RoundedCornerShape(8.dp),
|
shape = RoundedCornerShape(8.dp),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue