From 7546b361e33e17d4ea8015e8739318e719cf77e1 Mon Sep 17 00:00:00 2001 From: Anthony Date: Tue, 2 Apr 2024 01:00:30 +0200 Subject: [PATCH] feat(connector): made list items clickable in ListProjects --- .../src/desktopMain/kotlin/tab/project/ListProjects.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/connector/composeApp/src/desktopMain/kotlin/tab/project/ListProjects.kt b/connector/composeApp/src/desktopMain/kotlin/tab/project/ListProjects.kt index adf93d3..f38b661 100644 --- a/connector/composeApp/src/desktopMain/kotlin/tab/project/ListProjects.kt +++ b/connector/composeApp/src/desktopMain/kotlin/tab/project/ListProjects.kt @@ -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") }