reaction_button 0.0.1 copy "reaction_button: ^0.0.1" to clipboard
reaction_button: ^0.0.1 copied to clipboard

Customizable Reaction button to build social media application

Features #

Customizable Reaction button to build social media application.

Getting started #

To work with this packge first of all you have to understand ReactionModel

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,
    )
10
likes
0
points
7
downloads

Publisher

unverified uploader

Weekly Downloads

Customizable Reaction button to build social media application

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on reaction_button