File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
composeApp/src/commonMain/kotlin/de/rbn/speedcalctrainer Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,10 @@ package de.rbn.speedcalctrainer
3
3
import androidx.compose.animation.*
4
4
import androidx.compose.animation.core.tween
5
5
import androidx.compose.foundation.layout.*
6
+ import androidx.compose.foundation.rememberScrollState
6
7
import androidx.compose.foundation.text.KeyboardActions
7
8
import androidx.compose.foundation.text.KeyboardOptions
9
+ import androidx.compose.foundation.verticalScroll
8
10
import androidx.compose.material.MaterialTheme
9
11
import androidx.compose.runtime.*
10
12
import androidx.compose.ui.Alignment
@@ -58,9 +60,12 @@ fun App(modifier: Modifier = Modifier) {
58
60
updateNumbers()
59
61
}
60
62
63
+ val scrollState = rememberScrollState()
64
+
61
65
Column (
62
66
modifier = modifier
63
67
.fillMaxSize()
68
+ .verticalScroll(scrollState) // Enable vertical scrolling
64
69
.padding(16 .dp),
65
70
verticalArrangement = Arrangement .Top ,
66
71
horizontalAlignment = Alignment .CenterHorizontally
You can’t perform that action at this time.
0 commit comments