PieTheme class
Constructors
- PieTheme({bool bouncingMenu = true, Brightness brightness = Brightness.light, Color? overlayColor, Color? pointerColor, PieButtonTheme buttonTheme = const PieButtonTheme(backgroundColor: Colors.blue, iconColor: Colors.white), PieButtonTheme buttonThemeHovered = const PieButtonTheme(backgroundColor: Colors.lime, iconColor: Colors.black), double? iconSize, double distance = 96, double angleOffset = 0, double buttonSize = 56, double pointerSize = 42, EdgeInsets tooltipPadding = const EdgeInsets.symmetric(horizontal: 32), TextStyle? tooltipStyle, Duration pieBounceDuration = const Duration(seconds: 1), Duration fadeDuration = const Duration(milliseconds: 250), Duration hoverDuration = const Duration(milliseconds: 250), Duration delayDuration = const Duration(milliseconds: 350)})
-
Creates a PieTheme to configure PieMenus.
const
Properties
- angleOffset → double
-
Angle offset of the first
PieButton
displayed.final - bouncingMenu → bool
-
final
- brightness → Brightness
-
How the background and tooltip texts should be displayed
if they are not specified explicitly.
final
-
Size of
PieButton
circle.final -
Theme of
PieButton
.final -
Theme of
PieButton
when it is hovered.final - delayDuration → Duration
-
Long press duration for PieMenu to display.
final
- distance → double
-
Distance between the
PieButton
and the center of PieMenu.final - fadeDuration → Duration
-
Duration of PieMenu fade animation.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hoverDisplacement → double
-
Displacement distance of
PieButton
s when hovered.no setter - hoverDuration → Duration
-
Duration of
PieButton
hover animation.final - iconSize → double?
-
Size of the icon to be displayed on the
PieButton
.final -
Curve for the menu bounce animation.
final
-
Distance of PieMenu bounce animation.
final
-
Duration of PieMenu bounce animation.
final
-
Reverse curve for the menu bounce animation.
final
- overlayColor → Color?
-
Preferably a translucent color for PieCanvas to display
under the menu child, and on top of the other widgets.
final
- pieBounceDuration → Duration
-
Duration of
PieButton
bounce animation.final - pointerColor → Color?
-
Color of the widget displayed in the center of PieMenu.
final
- pointerSize → double
-
Size of the widget displayed in the center of PieMenu.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tooltipPadding → EdgeInsets
-
Padding value of the tooltip at the edges of PieCanvas.
final
- tooltipStyle → TextStyle?
-
Style of the tooltip text.
final
Methods
-
copyWith(
{bool? bouncingMenu, Brightness? brightness, Color? overlayColor, Color? pointerColor, PieButtonTheme? buttonTheme, PieButtonTheme? buttonThemeHovered, double? iconSize, double? distance, double? angleOffset, double? buttonSize, double? pointerSize, EdgeInsets? tooltipPadding, TextStyle? tooltipStyle, Duration? pieBounceDuration, Duration? fadeDuration, Duration? hoverDuration, Duration? delayDuration}) → PieTheme - Creates a copy of this theme but with the given fields replaced with the new values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
of(
BuildContext context) → PieTheme - Returns the PieTheme defined in the closest PieCanvas.