CustomNavigator class
A utility class that provides static methods for navigating between pages with custom transitions. This class is used to encapsulate the logic for pushing pages with various transition animations, making it easier to apply consistent transitions throughout the application.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
push(
ParentAnimation animation) → void -
pushAndRemoveUntil(
ParentAnimation animation, bool predicate(Route)) → void -
pushCorner(
{required BuildContext context, Corner corner = Corner.bottomLeft, required Widget nextPage, Duration duration = const Duration(milliseconds: 500)}) → void - Pushes a new page onto the navigation stack with a corner transition animation.
-
pushFadeScale(
{required BuildContext context, required Widget nextPage, Duration duration = const Duration(milliseconds: 500), double initialScale = 0.0}) → void - Pushes a new page onto the navigation stack with a fade and scale transition animation.
-
pushFlip(
{required BuildContext context, required Widget nextPage, Duration duration = const Duration(milliseconds: 500), AxisDirection axis = AxisDirection.left, bool fadeIn = true, bool forward = false}) → void - Pushes a new page onto the navigation stack with a flip transition animation.
-
pushFlyin(
{required BuildContext context, required Widget nextPage, Duration duration = const Duration(milliseconds: 500), AxisDirection axis = AxisDirection.left, AxisDirection inclination = AxisDirection.up, bool fadeIn = true, bool forward = false}) → void - Pushes a new page onto the navigation stack with a fly-in transition animation.
-
pushReplacement(
ParentAnimation animation) → void -
pushRotate(
{required BuildContext context, required Widget nextPage, Duration duration = const Duration(milliseconds: 500), int numberOfTurns = 1, bool clockwise = true}) → void - Pushes a new page onto the navigation stack with a rotate transition animation.
-
pushSlide(
{required BuildContext context, required Widget nextPage, AxisDirection direction = AxisDirection.left, Duration duration = const Duration(milliseconds: 500)}) → void - Pushes a new page onto the navigation stack with a slide transition animation.
-
pushSwirl(
{required BuildContext context, required Widget nextPage, Duration duration = const Duration(milliseconds: 500), int numHalfRotations = 1, bool forward = true, Axis axis = Axis.vertical}) → void - Pushes a new page onto the navigation stack with a swirl transition animation.