favorite_button
0.0.4, released 6 years ago by codeokplease.com
Create heart and star shaped favorite buttons with built-in animation effects.
What it does
favorite_button provides pre-styled heart and star interactive widgets that trigger animations when toggled. It exposes a valueChanged callback to track the current favorite or starred state.
AI-written summary of version 0.0.4, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a quick heart or star favorite button with animations.
- You want a drop-in button widget for bookmarking or favoriting items.
Skip it when
- You need completely custom shape morphing beyond hearts and stars.
- You are building a complex animation system requiring Rive or advanced custom physics.
Strengths
- Easy to use with minimal boilerplate
- Includes default animations for heart and star shapes
- Supports null safety
Weaknesses
- Limited shape selection (heart and star only)
- Changelog entries contain TODO placeholders
- Very basic feature set with no advanced customization documented
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
FavoriteButton(
valueChanged: (isFavorite) {
print('Is Favorite $isFavorite');
},
)Alternatives
Packages that do the same job and could replace favorite_button.
- parallax_rain
Widget that renders customizable 3D rain effect
75Compare - counter_button
A Flutter button widget with built-in animation effects for increasing and decreasing counter values.
40Compare - animated_float_action_button
Allows you to create a collapsible list of float buttons with animations.
39Compare - android_window
Flutter plugin to create native Android floating windows.
35Compare