v0.0.4favorite_button
favorite_button 是一個 Flutter 庫,可讓您建立帶有動畫效果的心形和星形收藏按鈕。
65喜歡 456近 30 天下載150Pub 分數
AndroidiOSWebmacOSWindowsLinux
收藏按鈕是一個Flutter程式庫,可讓您建立帶有動畫效果的心形和星形收藏特色按鈕
以下為英文專案原文快照,最新內容請造訪 GitHub。
Language: English
Favorite Button is a flutter library that allows you to create heart and star shaped favorite featured buttons with animation effects too.
the default effects is Icons.favorite
FavoriteButton(
valueChanged: (_) {
},
),
and you can also define custom effects.
FavoriteButton(
valueChanged: (_isFavorite) {
print('Is Favorite $_isFavorite)');
},
)
| 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 |
|
依賴清單 2 項
{"sdk":"flutter"}{"sdk":"flutter"}先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗