FLUTTER ECOSYSTEM

TeaTalkInternal/favorite_button

收藏按鈕是一個Flutter程式庫,可讓您建立帶有動畫效果的心形和星形收藏特色按鈕

收藏按鈕 專案封面
Stars
13
Forks
5
最近推送(UTC)
2021年5月4日
專案狀態
未封存
Tea Talk GitHub avatar
GITHUB Organization

Tea Talk ↗

語言DartSwiftKotlinObjective-C

技術主題

此儲存庫發佈的套件

使用的依賴

依賴清單 2 項
  • flutter{"sdk":"flutter"}
  • flutter_test開發依賴{"sdk":"flutter"}

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

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.

https://github.com/TeaTalkInternal/github_assets/blob/master/gifs/video-to-gif-converter.gif

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