Skip to content
pubscout

page_animation_transition

1.1.1, released 2 months ago by aayou.sh

Add customizable page transitions like slide, fade, scale, and rotate for Navigator and go_router.

WASM-ready
$ flutter pub add page_animation_transition
Source repository

What it does

Provides 18 ready-made transition animations (such as slide, fade, scale, rotation, size, and diagonal effects) that can be applied to imperative Navigator pushes, named routes, or declarative routers like go_router. It supports full control over duration, reverse duration, curves, and reverse curves without boilerplate PageRouteBuilder code.

AI-written summary of version 1.1.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want custom entry and exit animations for screen transitions without writing boilerplate PageRouteBuilders.
  • You are using go_router or another Navigator 2.0 router and need custom page transition routes.
  • You want to standardize page transitions across imperative and declarative navigation.

Skip it when

  • You are handling complex hero animations or shared element transitions between pages.
  • You prefer default platform-specific native page transitions.

Strengths

  • Includes 18 built-in transition types covering slides, fades, scales, rotations, and diagonals.
  • Works seamlessly with both imperative Navigator navigation and declarative routers like go_router.
  • Allows fine-grained customization of duration, reverse duration, and easing curves.

Weaknesses

  • Limited to standard page transition animations rather than custom multi-widget hero morphs.
  • Does not replace a routing library on its own; it only handles the transition animations.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

not documented

Navigator.of(context).push(
  PageAnimationTransition(
    page: const PageTwo(),
    pageAnimationType: LeftToRightTransition(),
  ),
);

Alternatives

Packages that do the same job and could replace page_animation_transition.

  • auto_route

    Pick auto_route if you want full declarative routing with code generation and built-in transition support rather than manual widget wrappers.

  • go_router

    Pick go_router if you are adopting official declarative routing, though this package can be used alongside it for custom transitions.