flutter_toggle_animated 0.0.5

Flutter Android iOS web

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.

0
likes
100
pub points
10%
popularity

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

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

ankitgg66@gmail.com

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_toggle_animated