animated_switcher_plus 1.1.1 copy "animated_switcher_plus: ^1.1.1" to clipboard
animated_switcher_plus: ^1.1.1 copied to clipboard

Prebuilt transitions for AnimatedSwitcher such as flip, zoom and translation

Prebuilt transitions for Animated Switcher such as flip, zoom and translation.

AnimatedSwitcherPlus

Transitions #

  • AnimatedSwitcherPlus.flipX
  • AnimatedSwitcherPlus.flipY
  • AnimatedSwitcherPlus.zoomIn
  • AnimatedSwitcherPlus.zoomOut
  • AnimatedSwitcherPlus.translationLeft
  • AnimatedSwitcherPlus.translationRight
  • AnimatedSwitcherPlus.translationTop
  • AnimatedSwitcherPlus.translationBottom

Features #

  • Easily animate between two widgets
  • No need to provide both the first and second child simultaneously, unlike similar packages

Installation #

Add this line to your pubspec:

dependencies:  
 animated_switcher_plus: ^1.1.1
copied to clipboard

Usage #

AnimatedSwitcherPlus.flipX(  
 duration: const Duration(milliseconds: 1500),
 child: _showFirstChild ?
  const Text('Primary Text', key: ValueKey(0)) :
  const Text('Secondary Text', key: ValueKey(1)),
);  
copied to clipboard

Note: If you are using the same type of widget, change the child key to notify the AnimatedSwitcher that the child has changed. Otherwise, the transition will not occur

48
likes
160
points
732
downloads

Publisher

verified publisherappgozar.com

Weekly Downloads

2024.08.26 - 2025.03.10

Prebuilt transitions for AnimatedSwitcher such as flip, zoom and translation

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on animated_switcher_plus