Skip to content

2.0.0

Compare
Choose a tag to compare
@rasitayaz rasitayaz released this 23 Aug 21:08
· 126 commits to main since this release
a2654c5

Breaking changes

Inside PieTheme;

  • Changed tooltip type from String to Widget, you can now use custom widgets as tooltips.
  • Renamed tooltipStyle to tooltipTextStyle.
  • Renamed distance to radius.
  • bouncingMenu is renamed to childBounceEnabled, and all the related attributes that starts with menuBounce... are renamed to childBounce... to avoid confusion.

Other;

  • onTap callback inside PieMenu is renamed to onPressed. Also added a new onPressedWithDevice callback that provides PointerDeviceKind, allowing you to distinguish between mouse and touch events.
  • Removed padding from PieAction since it already has a child that can be wrapped with a Padding widget.

New features and enhancements

Inside PieTheme;

  • Added rightClickShowsMenu and leftClickShowsMenu attributes to customize the mouse behavior. #13
  • Added customAngle and customAngleAnchor 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.