Flutter reaction button plugin a fully customizable widget such as the Facebook reaction button
Demo

Usage
Include ‘flutter_reaction_button’ from Dart Pub.
# pubspec.yaml dependencies: flutter: sdk: flutter flutter_reaction_button: <last-version>
Next, import ‘flutter_reaction_button.dart’ into your dart code.
import 'package:flutter_reaction_button/flutter_reaction_button.dart';
Parameters
parameter | description | default |
---|---|---|
OnReactionChanged | triggered when reaction button value change | |
reactions | reactions appear in reactions box when long pressed on ReactionnButtonToggle or click on ReactionButton | |
initialReaction | Default reaction button widget | first item in reactions list |
boxPosition | Position of reactions box according to the button | Position.TOP |
boxColor | Reactions box color | Colors.white |
boxElevation | Reactions box elevation | 5 |
boxRadius | Reactions box radius | 50 |
boxPadding | Reactions box padding | const EdgeInsets.all(0) |
boxDuration | Reactions box show/hide duration | 200 milliseconds |
shouldChangeReaction | Shold change initial reaction after selected one or not | true |
itemScale | Scale ratio when item hovered | 0.3 |
itemScaleDuration | Scale duration while dragging | const Duration(milliseconds: 100) |