v0.0.4favorite_button
favorite_button은 애니메이션 효과가 있는 하트형 및 별 모양의 즐겨찾기 버튼을 생성할 수 있는 플러터 라이브러리입니다.
65좋아요 25630일 다운로드150Pub 점수
AndroidiOSWebmacOSWindowsLinux
즐겨찾기 버튼은 애니메이션 효과를 갖춘 하트형 및 별 모양의 즐겨찾기 기능 버튼을 만들 수 있는 플러터 라이브러리입니다
{"sdk":"flutter"}{"sdk":"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.
https://github.com/TeaTalkInternal/github_assets/blob/master/gifs/video-to-gif-converter.gif
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 |
|