WheelDisplay constructor
const
WheelDisplay({
- Key? key,
- required AnimationController controller,
- required List<
WheelSegment> segments, - required double startRotation,
- required double endRotation,
- Widget? centerChild,
- Widget? indicator,
- Color? wheelColor,
- Color? indicatorColor,
- double? imageHeight,
- double? imageWidth,
- WheelLabelStyle? labelStyle,
- double minSize = 100.0,
- double maxSize = double.infinity,
- double aspectRatio = 1.0,
- Widget? background,
- bool shouldDrawBackground = true,
- EdgeInsets slicePadding = EdgeInsets.zero,
Creates a WheelDisplay.
Implementation
const WheelDisplay({
super.key,
required this.controller,
required this.segments,
required this.startRotation,
required this.endRotation,
this.centerChild,
this.indicator,
this.wheelColor,
this.indicatorColor,
this.imageHeight,
this.imageWidth,
this.labelStyle,
this.minSize = 100.0,
this.maxSize = double.infinity,
this.aspectRatio = 1.0,
this.background,
this.shouldDrawBackground = true,
this.slicePadding = EdgeInsets.zero,
});