animated_explode_button 0.0.4 copy "animated_explode_button: ^0.0.4" to clipboard
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),
                      ),
        ),
    )

12
likes
30
pub points
0%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on animated_explode_button