Skip to content
pubscout

favorite_button

0.0.4, released 6 years ago by codeokplease.com

Create heart and star shaped favorite buttons with built-in animation effects.

WASM-ready
$ flutter pub add favorite_button
Source repository

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.