animated_switcher_plus 1.1.0 copy "animated_switcher_plus: ^1.1.0" to clipboard
animated_switcher_plus: ^1.1.0 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 widget
  • No need to provide first and second child at the same time, compare to similar packages

Installation #

Add this line to your pubspec:

dependencies:  
 animated_switcher_plus: ^1.1.0

Usage #

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

Note: Change child's key in order to notify AnimatedSwitcher that child has been changed, otherwise transition won't happen.

39
likes
160
points
578
downloads

Publisher

verified publisherappgozar.com

Weekly Downloads

Prebuilt transitions for AnimatedSwitcher such as flip, zoom and translation

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on animated_switcher_plus