diff --git a/CHANGELOG.md b/CHANGELOG.md index 10b591b..6dcf92e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/lib/src/params/star_menu_params.dart b/lib/src/params/star_menu_params.dart index edbcef0..a222390 100644 --- a/lib/src/params/star_menu_params.dart +++ b/lib/src/params/star_menu_params.dart @@ -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; diff --git a/lib/src/star_item.dart b/lib/src/star_item.dart index 129aeb2..5639f4a 100644 --- a/lib/src/star_item.dart +++ b/lib/src/star_item.dart @@ -79,15 +79,17 @@ class StarItem extends StatelessWidget { onEnter: (event) => onHover.value = true, onExit: (event) => onHover.value = false, child: ValueListenableBuilder( - 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, + ); + }, + ), ), ), ), diff --git a/pubspec.yaml b/pubspec.yaml index 8c03ce3..d61f066 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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