- fix overlay was not rooted, ie when a shell route is displayed the menu coordinates wasn't correct
- breaking change: removed unused
context
parameter fromStarMenuParameters.arc
factory
- fixed a bug when dragging outside the menu items
- code optimized and finally linted
- updated v3 for the upcoming v4
- fixed a bug when dragging outside the menu items
- code optimized and finally linted
- Breaking change bug fix: StarMenuParameters.dropdown factory has an unwanted shift on the X axis
- fixed doc image links
- added blur parameters to the [BoundaryBackground] thanks to Hyungil Kang
- fixed sigmaX and sigmaY for the blurred background
- breaking: due to the [lazyItems] added to the [addStarMenu] extension, all the parameters to that mixin are now optional ex:
.addStarMenu(
items: upperMenuItems,
...
- added [lazyItems] and [onStateChanged] parameters to [addStarMenu] extension
- it's now possible to open a menu programmatically with [StarMenuController].
- it's now possible to open a menu programmatically by passing [parentContext] to [StarMenu].
- added [useTouchAsCenter] to [StarMenuParameters] to use the touch position as the menu center.
- added a new main.dart example
- added
onHoverScale
inStarMenuParameters
to scale items when mouse hover (desktop only) - added
BoundaryBackground
to set a background behind all the menu items - the opening animation now starts from the first menu item
- added
dropdown
,arc
andpanel
menu presets - breaking change: [StarMenuParameters.onItemTapped] moved into [StarMenu] widget
- added [useLongpress] and [longPressDuration] to open the menu with a long press
- code formatted
- fixed wrong menu position when using RTL
- added
onStateChanged
callback which triggersclosed
,closing
,opening
,open
states
- added a movement threshold for touches: if a movement of more the 10 px occurs after touching the widget, it will not open
- bug fix when changing device rotation
- added
lazyItems
property which builds menu items at runtime
- support for hot reload
- removed dart:io dependency for web compatibility
- bug fix in web version when animating the blur
- added some documentation
- breaking change: code rewritten to remove the 'keys boilerplate' (see the doc) and performances issue
- blurring background while opening
- fixed some naming conventions and formats for pub
- initial release.