Theme pageTransition
Currently, GetX does not use theme pagaTransition, default transition is not taken from theme. It is somehow hard to customize pageTranstion though CustomTransition. That’s why I changed default page transtion. It is easy to set custom transition through ThemeData.
Showing
1 changed file
with
4 additions
and
1 deletions
| @@ -723,7 +723,10 @@ Cannot read the previousTitle for a route that has not yet been installed''', | @@ -723,7 +723,10 @@ Cannot read the previousTitle for a route that has not yet been installed''', | ||
| 723 | route.alignment, animation, secondaryAnimation, child); | 723 | route.alignment, animation, secondaryAnimation, child); |
| 724 | } | 724 | } |
| 725 | 725 | ||
| 726 | - return PageTransitionsTheme().buildTransitions( | 726 | + PageTransitionsTheme pageTransitionsTheme = |
| 727 | + Theme.of(context).pageTransitionsTheme; | ||
| 728 | + | ||
| 729 | + return pageTransitionsTheme.buildTransitions( | ||
| 727 | route, | 730 | route, |
| 728 | context, | 731 | context, |
| 729 | iosAnimation, | 732 | iosAnimation, |
-
Please register or login to post a comment