favorite_button 0.0.4 copy "favorite_button: ^0.0.4" to clipboard
favorite_button: ^0.0.4 copied to clipboard

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

favorite_button #

Language: English

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

How to use it. #

the default effects is Icons.favorite

  FavoriteButton(
            valueChanged: (_) {
            },
          ),
copied to clipboard

and you can also define custom effects.

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

parameters #

parameter description default
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

more detail

65
likes
150
points
523
downloads

Publisher

verified publishercodeokplease.com

Weekly Downloads

2024.09.16 - 2025.03.31

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

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on favorite_button