FLUTTER ECOSYSTEM

TeaTalkInternal/favorite_button

お気に入りボタンは、アニメーション効果付きのハート型および星型のお気に入りボタンを作成できるFlutterライブラリです

お気に入りボタン のプロジェクト画像
Stars
13
Forks
5
最終プッシュ(UTC)
2021/05/04
プロジェクト状態
公開中
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