Skip to content
pubscout

animated_switcher_transitions

1.0.0, released 3 years ago by widgetarian.com

Collection of pre-built transition and layout builders for AnimatedSwitcher

WASM-ready
$ flutter pub add animated_switcher_transitions
Source repository

What it does

Provides ready‑made transition and layout functions that can be passed to AnimatedSwitcher. Includes fade, rotation, zoom, flip, shake, and slide effects with customizable directions.

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

Use it when

  • You want to quickly add visual flair to widget switches
  • You prefer not to write custom transitionBuilder logic
  • You need a variety of built‑in effects for prototyping

Skip it when

  • You need highly custom or stateful transitions that depend on external data
  • You are building a large, performance‑critical animation system that requires fine‑grained control

Strengths

  • Easy to use, no boilerplate
  • Wide range of built‑in effects
  • Works out of the box with standard AnimatedSwitcher

Weaknesses

  • Limited to the provided effects
  • No support for custom animation curves beyond what AnimatedSwitcher offers
  • No stateful or complex animation logic

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Add dependency to pubspec and import package

AnimatedSwitcher(
  duration: const Duration(milliseconds: 500),
  transitionBuilder: AnimatedSwitcherTransitions.flipY,
  layoutBuilder: AnimatedSwitcherLayouts.inOut,
  child: Text('$counter', key: ValueKey(counter)),
)

Alternatives

Packages that do the same job and could replace animated_switcher_transitions.

Works with

Packages commonly used together with animated_switcher_transitions: ones it builds on, ones built on it, and its own family.