Search packages, repositories and app categories

GitHub repositoryTeaTalkInternal/favorite_button

favorite_button

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

favorite_button project cover
Stars
13
Forks
5
Last push (UTC)
May 4, 2021
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

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

Tea Talk GitHub avatar
GitHub author

Tea Talk ↗

LanguagesDartSwiftKotlinObjective-C

Categories

Packages published by this repository

Dependencies used

Dependency list 2 items

  • flutter{"sdk":"flutter"}
  • flutter_testDevelopment{"sdk":"flutter"}

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗