Moved back to single top app bar to keep consistency in animation keeping in mind the scale of project
This commit is contained in:
1 parent
9caea3b006
commit
e3aa12ab47
8 files changed
+115
-133
No files matched your search
@@ -1,10 +1,13 @@
|
||||
package com.anthonyla.paperize.data.navigation
|
||||
|
||||
import androidx.compose.animation.AnimatedContentTransitionScope
|
||||
import androidx.compose.animation.ExperimentalAnimationApi
|
||||
import androidx.compose.animation.core.tween
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.navigation.NavController
|
||||
import androidx.navigation.NavGraphBuilder
|
||||
import androidx.navigation.compose.composable
|
||||
import androidx.navigation.compose.navigation
|
||||
import com.google.accompanist.navigation.animation.composable
|
||||
import com.google.accompanist.navigation.animation.navigation
|
||||
import com.anthonyla.paperize.ui.screens.Library
|
||||
import com.anthonyla.paperize.ui.screens.Configure
|
||||
import com.anthonyla.paperize.ui.screens.Settings
|
||||
@@ -13,6 +16,8 @@ import com.anthonyla.paperize.ui.screens.Wallpaper
|
||||
/**
|
||||
* The Nav graph builder links the routes for the different screens in the app
|
||||
*/
|
||||
|
||||
@ExperimentalAnimationApi
|
||||
fun NavGraphBuilder.navGraph(navController: NavController, modifier: Modifier = Modifier) {
|
||||
navigation(startDestination = BottomNavScreens.Wallpaper.route, route = "bottomNavigation") {
|
||||
composable(BottomNavScreens.Wallpaper.route) { Wallpaper(navController) }
|
||||
|
||||
Reference in new issue
Block a user