reaction_button 0.0.7 copy "reaction_button: ^0.0.7" to clipboard
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,
    )
9
likes
150
points
44
downloads

Publisher

unverified uploader

Weekly Downloads

Customizable Reaction button to build social media application

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on reaction_button