You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
999 B
Kotlin
31 lines
999 B
Kotlin
2 years ago
|
package com.yinuo.safetywatcher.navi
|
||
|
|
||
|
import androidx.compose.animation.core.tween
|
||
|
import androidx.compose.animation.fadeIn
|
||
|
import androidx.compose.animation.fadeOut
|
||
|
import androidx.compose.foundation.background
|
||
|
import androidx.compose.foundation.layout.fillMaxSize
|
||
|
import androidx.compose.foundation.layout.navigationBarsPadding
|
||
|
import androidx.compose.runtime.Composable
|
||
|
import androidx.compose.ui.Modifier
|
||
|
import androidx.navigation.compose.NavHost
|
||
|
import androidx.navigation.compose.composable
|
||
|
import com.yinuo.safetywatcher.ui.home.HomeView
|
||
|
import com.yinuo.safetywatcher.ui.setting.SettingView
|
||
|
|
||
|
/**
|
||
|
* @Description: todo
|
||
|
* @CreateDate: 2022/2/22 19:31
|
||
|
*/
|
||
|
@Composable
|
||
|
fun NavigationView() {
|
||
|
NavHost(navController = NavigationUtil.navHostController,
|
||
|
startDestination = ModelPath.Home.route) {
|
||
|
composable(ModelPath.Home.route) {
|
||
|
HomeView()
|
||
|
}
|
||
|
composable(ModelPath.Setting.route) {
|
||
|
SettingView(Modifier.fillMaxSize())
|
||
|
}
|
||
|
}
|
||
|
}
|