animated_explode_button 0.0.4
animated_explode_button: ^0.0.4 copied to clipboard

An exploding animation with physics based particles to spice up those boring button clicks.

animated_explode_button #

An exploding animation with physics based particles to spice up those boring button clicks

Button animation

#Usage


AnimatedExplodeButton(
  onTap: (){
    setState((){
      added = !added
      })
      }   ,
  color: added ? Colors.indigo : Colors.pink,
  child: added
    ? Container(
        padding: EdgeInsets.symmetric(horizontal: 40, vertical: 10),
        decoration:
                BoxDecoration(
                  color: Colors.indigo,
                  borderRadius: BorderRadius.circular(20),
                  ),
        child: Text(
                'Added',
                style: TextStyle(color: Colors.white),
                ),
        )
        : Container(
            padding: EdgeInsets.symmetric(horizontal: 40, vertical: 10),
            decoration:
              BoxDecoration(
                  color: Colors.pink,
                  borderRadius: BorderRadius.circular(20),
              ),
            child: Text(
                      'Add Friend',
                      style: TextStyle(color: Colors.white),
                      ),
        ),
    )

8
likes
80
pub points
45%
popularity

An exploding animation with physics based particles to spice up those boring button clicks.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on animated_explode_button