chore: Disable page transition in column mode
This commit is contained in:
parent
15c6926fe1
commit
f01d507e19
1 changed files with 1 additions and 4 deletions
|
|
@ -445,13 +445,10 @@ abstract class AppRoutes {
|
||||||
Widget child,
|
Widget child,
|
||||||
) =>
|
) =>
|
||||||
FluffyThemes.isColumnMode(context)
|
FluffyThemes.isColumnMode(context)
|
||||||
? CustomTransitionPage(
|
? NoTransitionPage(
|
||||||
key: state.pageKey,
|
key: state.pageKey,
|
||||||
restorationId: state.pageKey.value,
|
restorationId: state.pageKey.value,
|
||||||
child: child,
|
child: child,
|
||||||
transitionsBuilder:
|
|
||||||
(context, animation, secondaryAnimation, child) =>
|
|
||||||
FadeTransition(opacity: animation, child: child),
|
|
||||||
)
|
)
|
||||||
: MaterialPage(
|
: MaterialPage(
|
||||||
key: state.pageKey,
|
key: state.pageKey,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue