Use Shared Axis transitions (Material 3 style)
masterThe package supports Material Design 3 style shared axis transitions:
PageTransitionType.sharedAxisHorizontalPageTransitionType.sharedAxisVerticalPageTransitionType.sharedAxisScale
// Horizontal shared axis
context.pushTransition(
type: PageTransitionType.sharedAxisHorizontal,
child: DetailScreen(),
duration: Duration(milliseconds: 400),
curve: Curves.easeInOut,
);
// Vertical shared axis
context.pushTransition(
type: PageTransitionType.sharedAxisVertical,
child: DetailScreen(),
);
// Scale shared axis
context.pushTransition(
type: PageTransitionType.sharedAxisScale,
child: DetailScreen(),
);