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