flutter_toggle_animated 1.0.0 copy "flutter_toggle_animated: ^1.0.0" to clipboard
flutter_toggle_animated: ^1.0.0 copied to clipboard

A new Flutter package for simplifying the creation of Animated Controller for creating various animations.

flutter_toggle_animated #

A Flutter package for simplifying the creation of Animated Controller and using it for types of toggling animations with minimum efforts.

Getting Started #

This package help to only focus on animating your toggle animated ui without initializing much of the logic in initState.

Usage #

  INITIALIZING

   ToggleController _animatedController;

 @override
 void initState() {
   _animatedController = ToggleController(
    vsync: this, animationDuration: const Duration(milliseconds: 500))
    ..addListener(() {
       setState(() {});
     });
   super.initState();
 }

Properties #


  CurrentAnimationState state  // notifies the Current animation state

  double currentPercentOpen // notifies the Current animation value

Methods #


// returns boolean for checking if the current animation is running forward.
isOpening   

// returns boolean for checking if the current animation is completed.
isOpen  

// returns boolean for checking if the current animation is dismissed.
isClosed

// returns boolean for checking if the current animation is running in reverse direction.
isClosing

//  push animation to run in forward play
open

//  push animation to run in reverse play
close

// Toggle the current animation
toggle

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

2
likes
130
pub points
0%
popularity

Publisher

verified publishercodingloops.com

A new Flutter package for simplifying the creation of Animated Controller for creating various animations.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_toggle_animated