Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekAbdelouahed committed Nov 19, 2023
2 parents 4baaab7 + 68ff6ee commit 66d1148
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 14 deletions.
48 changes: 36 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,62 @@
# Flutter Reaction Button

[![pub package](https://img.shields.io/pub/v/flutter_reaction_button.svg)](https://pub.dartlang.org/packages/flutter_reaction_button)

Flutter Reactions Button is a customizable Flutter package that allows you to easily create interactive buttons with reaction emojis, similar to Facebook's iconic reaction buttons.
# Flutter reaction button

## Preview
Flutter Reaction Button is a customizable Flutter package that allows you to easily create interactive buttons with reaction emojis, similar to Facebook's iconic reaction buttons.

<img src="https://raw.githubusercontent.com/GeekAbdelouahed/flutter-reaction-button/master/images/flutter_reaction_button_preview.png"/>

## Usage
## Screenshot

![App Screenshot](https://raw.githubusercontent.com/GeekAbdelouahed/flutter-reaction-button/master/images/flutter_reaction_button_preview.png)

[Include 'flutter_reaction_button' from Dart Pub.](https://pub.dartlang.org/packages/flutter_reaction_button)

## Installation

```yaml
# pubspec.yaml

dependencies:
flutter:
sdk: flutter
flutter_reaction_button: <last-version>
```
Next, import 'flutter_reaction_button.dart' into your dart code.
## Usage
```dart
import 'package:flutter_reaction_button/flutter_reaction_button.dart';

ReactionButton<String>(
onReactionChanged: (Reaction<String>? reaction) {
debugPrint('Selected value: ${reaction?.value}');
},
reactions: <Reaction<String>>[
Reaction<String>(
value: 'like',
icon: widget,
),
Reaction<String>(
value: 'love',
icon: widget,
),
...
],
initialReaction: Reaction<String>(
value: 'like',
icon: widget,
),
selectedReaction: Reaction<String>(
value: 'like_fill',
icon: widget,
),
)
```

## LICENSE

## License

```legal
MIT License
Copyright (c) 2019 Abdelouahed Medjoudja
Copyright (c) 2023 Abdelouahed Medjoudja
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: flutter_reaction_button
description: Flutter Reactions Button is a customizable Flutter package that allows you to easily create interactive buttons with reaction emojis, similar to Facebook's iconic reaction buttons.
description: Flutter Reaction Button is a customizable Flutter package that allows you to easily create interactive buttons with reaction emojis, similar to Facebook's iconic reaction buttons.
homepage: https://github.com/GeekAbdelouahed/flutter-reaction-button
repository: https://github.com/GeekAbdelouahed/flutter-reaction-button.git
version: 3.0.0+3
Expand All @@ -16,4 +16,4 @@ dev_dependencies:
sdk: flutter
flutter_lints: ^2.0.1

flutter:
flutter:

0 comments on commit 66d1148

Please sign in to comment.