PieTheme constructor
const
PieTheme({
- Brightness brightness = Brightness.light,
- Color? overlayColor,
- Color? pointerColor,
- Decoration? pointerDecoration,
- PieButtonTheme buttonTheme = const PieButtonTheme(backgroundColor: Colors.blue, iconColor: Colors.white),
- PieButtonTheme buttonThemeHovered = const PieButtonTheme(backgroundColor: Colors.green, iconColor: Colors.white),
- double? iconSize,
- double radius = 96,
- double spacing = 6,
- double? customAngleDiff,
- double angleOffset = 0,
- double? customAngle,
- PieAnchor customAngleAnchor = PieAnchor.center,
- double buttonSize = 56,
- double pointerSize = 40,
- EdgeInsets tooltipPadding = const EdgeInsets.all(32),
- TextStyle? tooltipTextStyle,
- TextAlign? tooltipTextAlign,
- Alignment? tooltipCanvasAlignment,
- bool tooltipUseFittedBox = false,
- Duration pieBounceDuration = const Duration(seconds: 1),
- bool childBounceEnabled = true,
- bool childTiltEnabled = true,
- Duration childBounceDuration = const Duration(milliseconds: 150),
- double childBounceFactor = 0.95,
- Curve childBounceCurve = Curves.easeOutCubic,
- Curve? childBounceReverseCurve = Curves.easeInCubic,
- Duration fadeDuration = const Duration(milliseconds: 250),
- Duration hoverDuration = const Duration(milliseconds: 250),
- Duration delayDuration = const Duration(milliseconds: 350),
- bool leftClickShowsMenu = true,
- bool rightClickShowsMenu = false,
- PieOverlayStyle overlayStyle = PieOverlayStyle.behind,
- double childOpacityOnButtonHover = 0.5,
Implementation
const PieTheme({
this.brightness = Brightness.light,
this.overlayColor,
this.pointerColor,
this.pointerDecoration,
this.buttonTheme = const PieButtonTheme(
backgroundColor: Colors.blue,
iconColor: Colors.white,
),
this.buttonThemeHovered = const PieButtonTheme(
backgroundColor: Colors.green,
iconColor: Colors.white,
),
this.iconSize,
this.radius = 96,
this.spacing = 6,
this.customAngleDiff,
this.angleOffset = 0,
this.customAngle,
this.customAngleAnchor = PieAnchor.center,
this.menuAlignment,
this.menuDisplacement = Offset.zero,
this.buttonSize = 56,
this.pointerSize = 40,
this.tooltipPadding = const EdgeInsets.all(32),
this.tooltipTextStyle,
this.tooltipTextAlign,
this.tooltipCanvasAlignment,
this.tooltipUseFittedBox = false,
this.pieBounceDuration = const Duration(seconds: 1),
this.childBounceEnabled = true,
this.childTiltEnabled = true,
this.childBounceDuration = const Duration(milliseconds: 150),
this.childBounceFactor = 0.95,
this.childBounceCurve = Curves.easeOutCubic,
this.childBounceReverseCurve = Curves.easeInCubic,
this.fadeDuration = const Duration(milliseconds: 250),
this.hoverDuration = const Duration(milliseconds: 250),
this.delayDuration = const Duration(milliseconds: 350),
this.leftClickShowsMenu = true,
this.rightClickShowsMenu = false,
this.overlayStyle = PieOverlayStyle.behind,
this.childOpacityOnButtonHover = 0.5,
});