Search packages, repositories and app categories

favorite_button cover
Package detailsv0.0.4

favorite_button

favorite_button is a flutter library that allows you to create heart and star shaped favorite featured buttons with animation effects too.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
320
Likes
65
Pub points
150

Install package

flutter pub add favorite_button

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

favorite_button is a Flutter library that enables developers to easily implement heart and star-shaped favorite buttons with smooth animation effects. Designed for social media and interactive apps, it enhances user engagement by providing visual feedback when a button is pressed. The package supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux, ensuring consistent behavior across devices. With minimal setup via `flutter pub add favorite_button`, it integrates seamlessly into existing projects. It's ideal for features like liking posts, saving favorites, or marking items as important.

Use cases

  • Liking social media posts
  • Saving favorite items
  • Marking content as important
  • User preference tracking
  • Interactive app elements
  • Gamification features

Key features

  • Heart and star shaped buttons
  • Animated toggle effects
  • Cross-platform support
  • Simple integration
  • Customizable appearance
  • State persistence

Suitable for

  • Social media apps
  • Content bookmarking tools
  • User preference systems
  • Interactive UI components
  • Mobile and web applications
  • Engagement-driven designs

Considerations

  • Limited to heart and star shapes
  • Animation performance on low-end devices
  • Requires manual state management for persistence
  • No built-in data storage
  • Minimal customization beyond basic styling
  • Dependent on external source code for updates

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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.

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

Categories

Source repository

Projects using this package

No data available yet.