Get rid of annoying transitions
This commit is contained in:
		@@ -1,5 +1,7 @@
 | 
			
		||||
package com.ti.mobpo.ui
 | 
			
		||||
 | 
			
		||||
import androidx.compose.animation.EnterTransition
 | 
			
		||||
import androidx.compose.animation.ExitTransition
 | 
			
		||||
import androidx.compose.foundation.layout.Box
 | 
			
		||||
import androidx.compose.foundation.layout.fillMaxSize
 | 
			
		||||
import androidx.compose.foundation.layout.padding
 | 
			
		||||
@@ -101,14 +103,25 @@ fun Navigation() {
 | 
			
		||||
                    .padding(innerPadding),
 | 
			
		||||
                color = MaterialTheme.colorScheme.background,
 | 
			
		||||
                content = {
 | 
			
		||||
                    NavHost(navController = navController, startDestination = Screen.PokeSearch.route) {
 | 
			
		||||
                        composable(route = Screen.PokeSearch.route) {
 | 
			
		||||
                    NavHost(
 | 
			
		||||
                        navController = navController,
 | 
			
		||||
                        startDestination = Screen.PokeSearch.route,
 | 
			
		||||
                        enterTransition = {
 | 
			
		||||
                            EnterTransition.None
 | 
			
		||||
                        },
 | 
			
		||||
                        exitTransition = {
 | 
			
		||||
                            ExitTransition.None
 | 
			
		||||
                        }) {
 | 
			
		||||
                        composable(
 | 
			
		||||
                            route = Screen.PokeSearch.route) {
 | 
			
		||||
                            PokeSearch()
 | 
			
		||||
                        }
 | 
			
		||||
                        composable(route = Screen.Favourites.route) {
 | 
			
		||||
                        composable(
 | 
			
		||||
                            route = Screen.Favourites.route) {
 | 
			
		||||
                            Favourites()
 | 
			
		||||
                        }
 | 
			
		||||
                        composable(route = Screen.Profile.route) {
 | 
			
		||||
                        composable(
 | 
			
		||||
                            route = Screen.Profile.route) {
 | 
			
		||||
                            Profile()
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user