Skip to content

Commit 5bbd084

Browse files
committed
feat: vertical scrolling
1 parent b924e32 commit 5bbd084

File tree

1 file changed

+8
-1
lines changed
  • alchemist-composeui/src/commonMain/kotlin/it/unibo/alchemist/boundary/composeui

1 file changed

+8
-1
lines changed

alchemist-composeui/src/commonMain/kotlin/it/unibo/alchemist/boundary/composeui/App.kt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import androidx.compose.foundation.layout.Arrangement
1414
import androidx.compose.foundation.layout.Column
1515
import androidx.compose.foundation.layout.fillMaxSize
1616
import androidx.compose.foundation.layout.padding
17+
import androidx.compose.foundation.rememberScrollState
18+
import androidx.compose.foundation.verticalScroll
1719
import androidx.compose.material3.AlertDialog
1820
import androidx.compose.material3.Button
1921
import androidx.compose.material3.CardDefaults
@@ -58,7 +60,12 @@ fun app(viewModel: SimulationViewModel = viewModel { SimulationViewModel() }) {
5860
),
5961
border = BorderStroke(1.dp, Color.Black),
6062
) {
61-
Column(verticalArrangement = Arrangement.spacedBy(4.dp)) {
63+
Column(
64+
verticalArrangement = Arrangement.spacedBy(4.dp),
65+
modifier = Modifier.verticalScroll(
66+
rememberScrollState(),
67+
),
68+
) {
6269
errorDialog(viewModel::fetch, errors)
6370
for (node in nodes) {
6471
nodeDrawer(node.id)

0 commit comments

Comments
 (0)