@ -13,6 +13,8 @@ import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material3.Button
import androidx.compose.material3.Button
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.material3.Text
@ -28,7 +30,7 @@ import com.tailscale.ipn.R
@Composable
@Composable
fun IntroView ( onContinue : ( ) -> Unit ) {
fun IntroView ( onContinue : ( ) -> Unit ) {
Column (
Column (
modifier = Modifier . fillMaxHeight ( ) . fillMaxWidth ( ) ,
modifier = Modifier . fillMaxHeight ( ) . fillMaxWidth ( ) .verticalScroll ( rememberScrollState ( ) ) ,
horizontalAlignment = Alignment . CenterHorizontally ,
horizontalAlignment = Alignment . CenterHorizontally ,
verticalArrangement = Arrangement . Center ) {
verticalArrangement = Arrangement . Center ) {
Image (
Image (
@ -48,7 +50,6 @@ fun IntroView(onContinue: () -> Unit) {
fontSize = MaterialTheme . typography . titleMedium . fontSize )
fontSize = MaterialTheme . typography . titleMedium . fontSize )
}
}
Spacer ( modifier = Modifier . height ( 40. dp ) )
Spacer ( modifier = Modifier . height ( 40. dp ) )
}
Box (
Box (
modifier = Modifier . fillMaxHeight ( ) . padding ( start = 20. dp , end = 20. dp , bottom = 40. dp ) ,
modifier = Modifier . fillMaxHeight ( ) . padding ( start = 20. dp , end = 20. dp , bottom = 40. dp ) ,
@ -59,4 +60,5 @@ fun IntroView(onContinue: () -> Unit) {
color = MaterialTheme . colorScheme . onSurfaceVariant ,
color = MaterialTheme . colorScheme . onSurfaceVariant ,
textAlign = TextAlign . Center )
textAlign = TextAlign . Center )
}
}
}
}
}