Skip to content

Commit

Permalink
lints!
Browse files Browse the repository at this point in the history
  • Loading branch information
alnitak committed Feb 24, 2024
1 parent dc46363 commit a2922c8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
##### [3.1.7] - 24 Feb 2024
##### [3.1.8] - 24 Feb 2024
* fixed a bug when dragging outside the menu items
* code optimized and finally linted
* breaking change: removed unused `context` parameter from `StarMenuParameters.arc` factory
Expand Down
2 changes: 1 addition & 1 deletion lib/src/params/star_menu_params.dart
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class StarMenuParameters {
/// Close animation duration
final int closeDurationMs;

/// Starting rotation angle of the items that will
/// Starting rotation angle of the items that will
/// reach 0 DEG when animation ends
final double rotateItemsAnimationAngle;

Expand Down
20 changes: 11 additions & 9 deletions lib/src/star_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,17 @@ class StarItem extends StatelessWidget {
onEnter: (event) => onHover.value = true,
onExit: (event) => onHover.value = false,
child: ValueListenableBuilder<bool>(
valueListenable: onHover,
builder: (_, isHover, __) {
return AnimatedScale(
scale: a < 1.0
? newScale
: (isHover ? newScale * onHoverScale : newScale),
duration: const Duration(milliseconds: 200),
child: child,);
},),
valueListenable: onHover,
builder: (_, isHover, __) {
return AnimatedScale(
scale: a < 1.0
? newScale
: (isHover ? newScale * onHoverScale : newScale),
duration: const Duration(milliseconds: 200),
child: child,
);
},
),
),
),
),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: star_menu
description: Contextual popup menu with different shapes and multiple ways to fine-tune animation and position. The menu entries can be almost any kind of widgets.
version: 3.1.7
version: 3.1.8
homepage: https://github.com/alnitak/flutter_star_menu
issue_tracker: https://github.com/alnitak/flutter_star_menu/issues
repository: https://github.com/alnitak/flutter_star_menu
Expand Down

0 comments on commit a2922c8

Please sign in to comment.