25 lines
797 B
Kotlin
25 lines
797 B
Kotlin
package com.example.navigationapp.screen
|
|
|
|
import androidx.compose.foundation.layout.Arrangement
|
|
import androidx.compose.foundation.layout.Column
|
|
import androidx.compose.foundation.layout.fillMaxSize
|
|
import androidx.compose.foundation.layout.fillMaxWidth
|
|
import androidx.compose.material3.Button
|
|
import androidx.compose.material3.Text
|
|
import androidx.compose.runtime.Composable
|
|
import androidx.compose.ui.Alignment
|
|
import androidx.compose.ui.Modifier
|
|
|
|
@Composable
|
|
fun ScreenTwo(onNavigationToScreenOne: () -> Unit){
|
|
Column(
|
|
modifier = Modifier.fillMaxSize(),
|
|
horizontalAlignment = Alignment.CenterHorizontally,
|
|
verticalArrangement = Arrangement.Center
|
|
) {
|
|
Text("Screen Two")
|
|
Button(
|
|
onClick = onNavigationToScreenOne
|
|
) { }
|
|
}
|
|
} |