## 3.2.7
- Added widget mounted checks to fix exceptions thrown from pointer events of a disposed Pie Menu.
- Added
childBounceFilterQuality
option toPieTheme
to adjust the quality of the child bounce transformation.
- Fixed child widget initializing twice when bouncing is enabled.
- Hotfix for scrollable performance issue.
- Another hotfix for exceptions thrown from bouncing widget.
- Fixed exceptions thrown from bouncing widget. #57
- Fixed inconsistency in menu child positioning when the scroll position changes while the menu is open.
- Fixed some stateful widgets are trying to set their state after being disposed.
- Added
menuAlignment
andmenuDisplacement
toPieTheme
to allow custom positioning of the menu. #50 - Added
PieMenuController
to programmatically control the menus. #48 - Fixed
PieCanvas
theme is not updating after widget initialization.
- Fixed changelog typos.
- Small bug fixes.
- Fixed timers not being disposed properly, causing errors during navigation.
- Fixed some child bounce animation issues.
- Improved the child bounce animation by adding a 3D tilt effect to it inspired by Bounce package. Can be disabled by setting
childTiltEnabled
tofalse
inPieTheme
. - Added
overlayStyle
toPieTheme
to switch between the old and new overlay styles.PieOverlayStyle.behind
(the old style) is used by default because the new one causes render issues in some cases. - Other minor improvements and bug fixes.
- When a
PieMenu
activates, other gestures are now automatically cancelled. You no longer need to useNeverScrollableScrollPhysics
to disable scrolling or to deactivate the functionality of your interactive menu child. - Overlay is now drawn around the menu child using
CustomPaint
. This addresses the issue of the menu child losing its state when the menu is activated. - Fixed some animation issues and slightly improved performance by implementing a better state management solution.
- Replaced
childBounceDistance
withchildBounceFactor
inPieTheme
. - Other minor improvements and bug fixes.
- Fixed changelog typos.
- Wrapped canvas with a transparent
Material
to be able to use it outsideScaffold
.
- 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!
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.
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.
- Improved menu angle calculation, the menu is now displayed at a better angle when opened from the corners of the screen.
- Added
angleOffset
parameter toPieTheme
to adjust the menu angle.
- Fixed some critical gesture issues.
- Replaced
menuBounceDepth
withmenuBounceDistance
inPieTheme
and improved default bounce animation. - Fixed #28.
- Improved menu bounce animations.
- Added macOS demo.
- Fixed broken repository links in
README.md
.
- Fixed menu not displaying and child disappearing on iOS devices. #23
- Fixed menu being able to be activated from blank canvas areas.
- Fixed stateful menu children not being updated.
- Added
ScrollConfiguration
to disable scrolling automatically when aPieMenu
is visible, but it is not working properly at the moment because of this issue with Flutter framework. - Added missing
copyWith()
parameters inPieTheme
. - Added
PieTheme.of(context)
function to accessPieCanvas
theme fromPieMenu
and customize it easily. - Removed
childHovered
parameter fromPieAction
, you can usePieAction.builder()
and itsbuilder
parameter for custom hovered buttons. - Fixed menu child staying visible after dismiss.
- Fixed issues related to animations after dispose.
- Improved fade animations.
- Stability and performance improvements.
- Added bouncing menu child animation. (Can be customized or disabled with
PieTheme
) - Added
onTap
callback toPieMenu
. - Clicking the center of the menu now dismisses it.
- Bug fixes and stabilization improvements.
- Migrated to Flutter 3
- Updated
PieAction
properties, nowchild
andchildHovered
should be used instead of the oldiconData
,customWidget
,customHoveredWidget
properties. - No longer depends on the
font_awesome_flutter
package, because icons should be specified as widgets. - Some property names are updated. Check the documentation for more info.
- Menu now stays open when the pointer is released over the pressed area.
- Fixed listener above the menu not responding to some pointer events outside of menus.
- Added custom menu child to display when the menu is visible.
- Fixed last selected action label becoming visible for a short time after reopening the menu.
- Using
PieMenu
withoutPieCanvas
now deactivates the menu and just displays the child.
- Font Awesome Icons can now be used with
font_awesome_flutter
package.
- Custom container decoration can now be specified using
decoration
property ofPieButtonTheme
.
- Added
iconSize
property forPieTheme
. - Fixed selected action is becoming non-hovered before the menu fades out.
- Fixed
onMenuToggle
callback ofPieMenu
is not being called when the canvas callback is null.
onMenuToggle
callback atPieCanvas
also added forPieMenu
.
- Updated README.md showcase images.
- Fixed README.md images.
- Updated package description.
- Initial release.