mirror of
https://github.com/smyalygames/checklist-tester.git
synced 2025-05-18 14:34:12 +02:00
feat(connector): made list items clickable in ListProjects
This commit is contained in:
parent
5256ea64a6
commit
7546b361e3
@ -1,6 +1,7 @@
|
|||||||
package tab.project
|
package tab.project
|
||||||
|
|
||||||
import androidx.compose.foundation.VerticalScrollbar
|
import androidx.compose.foundation.VerticalScrollbar
|
||||||
|
import androidx.compose.foundation.clickable
|
||||||
import androidx.compose.foundation.layout.Box
|
import androidx.compose.foundation.layout.Box
|
||||||
import androidx.compose.foundation.layout.Column
|
import androidx.compose.foundation.layout.Column
|
||||||
import androidx.compose.foundation.layout.fillMaxHeight
|
import androidx.compose.foundation.layout.fillMaxHeight
|
||||||
@ -46,6 +47,13 @@ class ListProjects : Screen {
|
|||||||
LazyColumn(state = state) {
|
LazyColumn(state = state) {
|
||||||
items(50) { index ->
|
items(50) { index ->
|
||||||
ListItem(
|
ListItem(
|
||||||
|
modifier = Modifier
|
||||||
|
.clickable(
|
||||||
|
enabled = true,
|
||||||
|
onClick = {
|
||||||
|
// TODO add loading project
|
||||||
|
}
|
||||||
|
),
|
||||||
overlineContent = { Text("Emergency") },
|
overlineContent = { Text("Emergency") },
|
||||||
headlineContent = { Text("Project $index") },
|
headlineContent = { Text("Project $index") },
|
||||||
trailingContent = { Icon(Icons.AutoMirrored.Filled.KeyboardArrowRight, "Open Project") }
|
trailingContent = { Icon(Icons.AutoMirrored.Filled.KeyboardArrowRight, "Open Project") }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user