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
|
||||
|
||||
import androidx.compose.foundation.VerticalScrollbar
|
||||
import androidx.compose.foundation.clickable
|
||||
import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.fillMaxHeight
|
||||
@ -46,6 +47,13 @@ class ListProjects : Screen {
|
||||
LazyColumn(state = state) {
|
||||
items(50) { index ->
|
||||
ListItem(
|
||||
modifier = Modifier
|
||||
.clickable(
|
||||
enabled = true,
|
||||
onClick = {
|
||||
// TODO add loading project
|
||||
}
|
||||
),
|
||||
overlineContent = { Text("Emergency") },
|
||||
headlineContent = { Text("Project $index") },
|
||||
trailingContent = { Icon(Icons.AutoMirrored.Filled.KeyboardArrowRight, "Open Project") }
|
||||
|
Loading…
x
Reference in New Issue
Block a user