Skip to content
pubscout

like_button

2.1.0, released 2 years ago by fluttercandies.com

Flutter widget providing Twitter-like heart animation effects for liking and like counts.

WASM-ready
$ flutter pub add like_button
Source repository

What it does

Like Button is a Flutter library that allows you to create a button with animation effects similar to Twitter's heart when you like something, complete with particle bubbles, a scaling circle, and animations to increase the like count. It supports custom icons, colors, sizing, and asynchronous tap callbacks for sending requests.

AI-written summary of version 2.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a Twitter-style heart or custom like button with particle bubble animations.
  • You want to animate the like count alongside the button state.

Skip it when

  • You need standard un-animated buttons.
  • You require complex vector animations that are better suited for Rive or Lottie.

Strengths

  • Easy to implement with sensible defaults.
  • Highly customizable bubbles, circles, colors, and builders.
  • Supports asynchronous onTap callbacks for backend requests.

Weaknesses

  • Limited to specific like/heart animation mechanics.
  • Not documented for complex state management beyond standard callbacks and isLiked flags.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

not documented

LikeButton(
  size: 30.0,
  circleColor: CircleColor(start: Color(0xff00ddff), end: Color(0xff0099cc)),
  bubblesColor: BubblesColor(
    dotPrimaryColor: Color(0xff33b5e5),
    dotSecondaryColor: Color(0xff0099cc),
  ),
  likeBuilder: (bool isLiked) {
    return Icon(
      Icons.home,
      color: isLiked ? Colors.deepPurpleAccent : Colors.grey,
      size: 30.0,
    );
  },
)

Alternatives

Packages that do the same job and could replace like_button.

  • flutter_animate

    Choose flutter_animate for general-purpose declarative animations rather than a specific like button component.

  • lottie

    Choose lottie if you prefer using designer-made vector animations for complex heart effects.