2.0.0
- Desktop and web experience is significantly improved with this update. Check new features and updated readme for details.
- Added live Flutter web demo, give it a try!
Breaking changes
Inside PieTheme
;
- Changed
tooltip
type fromString
toWidget
, you can now use custom widgets as tooltips. - Renamed
tooltipStyle
totooltipTextStyle
. - Renamed
distance
toradius
. bouncingMenu
is renamed tochildBounceEnabled
, and all the related attributes that starts withmenuBounce...
are renamed tochildBounce...
to avoid confusion.
Other;
onTap
callback insidePieMenu
is renamed toonPressed
. Also added a newonPressedWithDevice
callback that providesPointerDeviceKind
, allowing you to distinguish between mouse and touch events.- Removed
padding
fromPieAction
since it already has achild
that can be wrapped with aPadding
widget.
New features and enhancements
Inside PieTheme
;
- Added
rightClickShowsMenu
andleftClickShowsMenu
attributes to customize the mouse behavior. #13 - Added
customAngle
andcustomAngleAnchor
attributes to set a fixed positioning for the buttons. #34 - Added
tooltipCanvasAlignment
to specify a custom alignment for the tooltip in the canvas. #35 - Added
tooltipUseFittedBox
to allow the tooltip to be resized to fit the text into a single line. - Added
pointerDecoration
, allowing you to style the widget at the center of the menu.
Other;
- Hovering over the buttons with mouse highlights them now. Also, cursor changes when the menu or buttons are hovered. #16
- Improved dynamic menu angle calculation (again).
- Improved dynamic tooltip positioning.
- Fixed text style related issues. Menu, canvas and default text styles are now being merged properly.
- Other performance improvements and bug fixes.