WheelColorPicker constructor

const WheelColorPicker({
  1. Key? key,
  2. FanAnimationConfig animationConfig = const FanAnimationConfig(),
  3. required void onSelect(
    1. Color
    ),
  4. required Color defaultColor,
  5. required double innerRadius,
  6. required double pieceHeight,
  7. required double buttonSize,
  8. void onTap(
    1. Color
    )?,
  9. ButtonBehaviour? behaviour = ButtonBehaviour.longPressToOpen,
  10. bool stickToButton = true,
  11. List<List<Color>> colorList = defaultAvailableColors,
  12. double fanPieceBorderSize = 0,
  13. bool debugMode = false,
})

A button which you can click to pop out an overlay containing a wheel of color pieces.

Implementation

const WheelColorPicker({
  Key? key,
  this.animationConfig = const FanAnimationConfig(),
  required this.onSelect,
  required this.defaultColor,
  required this.innerRadius,
  required this.pieceHeight,
  required this.buttonSize,
  this.onTap,
  this.behaviour = ButtonBehaviour.longPressToOpen,
  this.stickToButton = true,
  this.colorList = defaultAvailableColors,
  this.fanPieceBorderSize = 0,
  this.debugMode = false,
}) : super(key: key);