Comments (7)
@raamcosta
Did you get a chance to look at this ?
from compose-destinations.
You can just use DestinationStyle.Animated.None
in the annotation of the destination that you want to disable. (This is from memory, but it should be something like this 😅).
Please try it and let me know
from compose-destinations.
Although that may only remove animation from that destination 🤔 If you are navigating to it and your current destination has some exit animation that exit would still be performed I believe.. so that may not be enough to achieve what you want..
But try it please 🙏
from compose-destinations.
@raamcosta
Sure. Will try this & share the results here
from compose-destinations.
@UKMIITB : Did you manage to get your transition animations to work with Compose Destinations? Do you mind sharing the final code that worked for you?
from compose-destinations.
@arunabhdas
For getting the animations for transition between destinations, this is the code that I used
engine =
rememberAnimatedNavHostEngine(
rootDefaultAnimations =
RootNavGraphDefaultAnimations(
enterTransition = {
slideIntoContainer(
towards =
AnimatedContentTransitionScope.SlideDirection
.Companion
.Left,
animationSpec = tween(400)
)
},
exitTransition = {
slideOutOfContainer(
towards =
AnimatedContentTransitionScope.SlideDirection
.Companion
.Left,
animationSpec = tween(400)
)
},
popEnterTransition = {
slideIntoContainer(
towards =
AnimatedContentTransitionScope.SlideDirection
.Companion
.Right,
animationSpec = tween(400)
)
},
popExitTransition = {
slideOutOfContainer(
towards =
AnimatedContentTransitionScope.SlideDirection
.Companion
.Right,
animationSpec = tween(400)
)
}
)
)
from compose-destinations.
Closing this. Take a look at v2's runtime animations as soon as that's documented!
from compose-destinations.
Related Issues (20)
- (Open)ResultRecipient seems to cause recompositions HOT 1
- Pass/Access ContentPadding in Child-Destinations HOT 1
- Original Question: Is this project (basically) dead? Answer: Definitely not! Exciting things are coming! HOT 2
- Could not find navigator with name "BottomSheetNavigator" Using compose 1.7 HOT 1
- Please updrade Navigation to 2.8.0-beta05,this version fixed navhost transition stuck issue. HOT 1
- DestinationsNavHost 'start' parameter ruins Multiple Back Stack HOT 6
- "Cannot detect default value for navigation argument" error when updating from 2.0.0-beta09 to 2.0.0-beta10 HOT 4
- Keep previous screen alive HOT 1
- How to handle mutual navigation between multiple modules? HOT 3
- Is there any ideomatic way to navigate to the top level destination? HOT 1
- navArgsDelegate support object inside another class HOT 2
- Is there a way to use ResultBackNavigator in ActivityDestination? HOT 1
- Null Pointer Exception in KSP plugin HOT 1
- dependencyContainer.require go wrong when using muti MutableState<T> as `Arguments from NavHost` HOT 1
- BottomSheet opening delay HOT 1
- Error in multimodule v2 NavHostGraph HOT 2
- Send custom data though Navigating back with a result HOT 4
- When to expect rc/ release version of v2 HOT 7
- Nested navigation issue (BottomBar)
- Navigation Multi-stack clear
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compose-destinations.