fav_button 0.0.1 copy "fav_button: ^0.0.1" to clipboard
fav_button: ^0.0.1 copied to clipboard

favorite_button is a flutter library that allows you to create custom favorite featured buttons with animation effects too.

Star on GitHub

Favorite Button is a flutter library that allows you to create heart and star shaped favorite featured buttons with animation effects too.

Omar Nasser #

Omar Nasser

GitHub LinkedIn Portfolio

How to use it. #

the default effects is Icons.favorite

  FavoriteButton(
            valueChanged: (_) {
            },
          ),

and you can also define custom effects.

 FavoriteButton(
            valueChanged: (_isFavorite) {
              print('Is Favorite $_isFavorite)');
            },
          )

parameters #

parameter description default
icon Icon 60.0
iconSize size of button widget 60.0
iconColor color of button widget red for heart and yellow for star button respectively
valueChanged Function that returns boolean value for current state of button This is a required parameter
isFavorite or isStarred Default state of button This is a optional parameter
8
likes
140
points
25
downloads

Publisher

unverified uploader

Weekly Downloads

favorite_button is a flutter library that allows you to create custom favorite featured buttons with animation effects too.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on fav_button