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
tooltiptype fromStringtoWidget, you can now use custom widgets as tooltips. - Renamed
tooltipStyletotooltipTextStyle. - Renamed
distancetoradius. bouncingMenuis renamed tochildBounceEnabled, and all the related attributes that starts withmenuBounce...are renamed tochildBounce...to avoid confusion.
Other;
onTapcallback insidePieMenuis renamed toonPressed. Also added a newonPressedWithDevicecallback that providesPointerDeviceKind, allowing you to distinguish between mouse and touch events.- Removed
paddingfromPieActionsince it already has achildthat can be wrapped with aPaddingwidget.
New features and enhancements
Inside PieTheme;
- Added
rightClickShowsMenuandleftClickShowsMenuattributes to customize the mouse behavior. #13 - Added
customAngleandcustomAngleAnchorattributes to set a fixed positioning for the buttons. #34 - Added
tooltipCanvasAlignmentto specify a custom alignment for the tooltip in the canvas. #35 - Added
tooltipUseFittedBoxto 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.