pie_menu 2.0.1 pie_menu: ^2.0.1 copied to clipboard
A Flutter package that provides a highly customizable circular/radial context menu
2.0.1 #
- Wrapped canvas with a transparent
Material
to be able to use it outsideScaffold
.
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.
1.3.0 #
- 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.
1.2.6 #
- Fixed some critical gesture issues.
1.2.5 #
- Replaced
menuBounceDepth
withmenuBounceDistance
inPieTheme
and improved default bounce animation. - Fixed #28.
1.2.4 #
- Improved menu bounce animations.
- Added macOS demo.
1.2.3 #
- Fixed broken repository links in
README.md
.
1.2.2 #
- Fixed menu not displaying and child disappearing on iOS devices. #23
- Fixed menu being able to be activated from blank canvas areas.
1.2.1 #
- Fixed stateful menu children not being updated.
1.2.0 #
- 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.
1.1.0 #
- 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.
1.0.0 #
- 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.
0.2.0 #
- 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.
0.1.1 #
- 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.
0.1.0 #
- Font Awesome Icons can now be used with
font_awesome_flutter
package.
0.0.7 #
- Custom container decoration can now be specified using
decoration
property ofPieButtonTheme
.
0.0.6 #
- Added
iconSize
property forPieTheme
. - Fixed selected action is becoming non-hovered before the menu fades out.
0.0.5 #
- Fixed
onMenuToggle
callback ofPieMenu
is not being called when the canvas callback is null.
0.0.4 #
onMenuToggle
callback atPieCanvas
also added forPieMenu
.
0.0.3 #
- Updated README.md showcase images.
0.0.2 #
- Fixed README.md images.
- Updated package description.
0.0.1 #
- Initial release.