reaction_button 0.0.7
reaction_button: ^0.0.7 copied to clipboard
Customizable Reaction button to build social media application
Features #
Customizable Reaction button to build social media application.

Usage #
ReactionButton(
selectedReaction: postModel.selectedReaction,
onChangedReaction: (reaction) {
setState(() {
postModel.selectedReaction = reaction;
});
},
placeHolder: ReactionModel(
value: 'like',
initialView: const Image(
width: 32,
image: AssetImage(AppAssets.LIKE_ACTION_ICON),
),
selectedView: const Row(
children: [
Image(
width: 32,
image: AssetImage(AppAssets.LIKE_ICON),
),
Text('Like'),
],
),
),
reactions: reactions,
)