New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Navigator without transitions not working #147862
Comments
Hi @aleripe, you appear to be using an older version of flutter, can you upgrade to the latest version of flutter stable (3.19.6) to see if you still experience this issue? If you do, please provide the updated output of Also, what platform(s) are you seeing this issue on? |
Hi @danagbemava-nc , I just updated with the same result (on web and Android)
|
Hi @aleripe, can you try setting the pageTransitionsTheme of your You can define one like so class NoAnimationTransitionBuilder extends PageTransitionsBuilder {
const NoAnimationTransitionBuilder();
@override
Widget buildTransitions<T>(PageRoute<T> route, BuildContext context, Animation<double> animation, Animation<double> secondaryAnimation, Widget child) {
return child;
}
} and set the theme like below theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
pageTransitionsTheme: const PageTransitionsTheme(
builders: {
TargetPlatform.android: NoAnimationTransitionBuilder(),
TargetPlatform.iOS: NoAnimationTransitionBuilder(),
TargetPlatform.linux: NoAnimationTransitionBuilder(),
TargetPlatform.macOS: NoAnimationTransitionBuilder(),
TargetPlatform.windows: NoAnimationTransitionBuilder(),
},
), |
Hi @danagbemava-nc , I don't want to disable all transitions but just those in that specific navigator (to get rid of that grey background scrim). |
Thanks for the clarification. Reproducible using the code sample provided above. flutter doctor -v
|
Thank you for the report. As documented, the transitionDelegate is only considered for Page transitions (i.e. when the
https://main-api.flutter.dev/flutter/widgets/Navigator/transitionDelegate.html |
Steps to reproduce
Expected results
Navigation happens without any animation
Actual results
An unexpected animation with a dark background occurs
Code sample
Code sample
Screenshots or Video
No response
Logs
No response
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: