Skip to content

Commit

Permalink
feat: fix static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekAbdelouahed committed Oct 10, 2023
1 parent a391eff commit 347a68e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 3.0.0+2
* Minor updates

## 3.0.0+1
* Update README

Expand Down
12 changes: 8 additions & 4 deletions lib/src/widgets/reaction_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,16 @@ class _ReactionButtonState<T> extends State<ReactionButton<T>> {
return GestureDetector(
key: _globalKey,
onTap: () {
widget.toggle ? _onCheck() : _onShowReactionsBox();
if (widget.toggle) {
_onCheck();
} else {
_onShowReactionsBox();
}
},
onLongPressStart: (details) {
widget.toggle
? _onShowReactionsBox(_isContainer ? details.globalPosition : null)
: null;
if (widget.toggle) {
_onShowReactionsBox(_isContainer ? details.globalPosition : null);
}
},
child: child,
);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ 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.
homepage: https://github.com/GeekAbdelouahed/flutter-reaction-button
repository: https://github.com/GeekAbdelouahed/flutter-reaction-button.git
version: 3.0.0+1
version: 3.0.0+2

environment:
sdk: '>=3.0.0 <4.0.0'
Expand Down

0 comments on commit 347a68e

Please sign in to comment.