TeaTalkInternal / favorite_button

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

Home Page:https://pub.dev/packages/favorite_button

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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: (_) {
            },
          ),

and you can also define custom effects.

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

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

About

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

https://pub.dev/packages/favorite_button

License:MIT License


Languages

Language:Dart 92.9%Language:Swift 3.6%Language:Kotlin 3.1%Language:Objective-C 0.3%