flutter_toggle_animated 0.0.8 icon indicating copy to clipboard operation
flutter_toggle_animated: ^0.0.8 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.

1
likes
120
pub points
19%
popularity

Publisher

unverified uploader

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

Homepage

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_toggle_animated