MaterialColorPicker constructor

const MaterialColorPicker({
  1. Key? key,
  2. Color? selectedColor,
  3. ValueChanged<Color>? onColorChange,
  4. ValueChanged<ColorSwatch?>? onMainColorChange,
  5. List<ColorSwatch>? colors,
  6. bool shrinkWrap = true,
  7. ScrollPhysics? physics,
  8. bool allowShades = true,
  9. bool onlyShadeSelection = false,
  10. IconData iconSelected = Icons.check,
  11. double circleSize = 45.0,
  12. double spacing = 9.0,
  13. VoidCallback? onBack,
  14. double? elevation,
  15. WrapAlignment alignment = WrapAlignment.start,
  16. WrapAlignment runAlignment = WrapAlignment.center,
  17. WrapCrossAlignment crossAxisAlignment = WrapCrossAlignment.center,
})

Implementation

const MaterialColorPicker({
  Key? key,
  this.selectedColor,
  this.onColorChange,
  this.onMainColorChange,
  this.colors,
  this.shrinkWrap = true,
  this.physics,
  this.allowShades = true,
  this.onlyShadeSelection = false,
  this.iconSelected = Icons.check,
  this.circleSize = 45.0,
  this.spacing = 9.0,
  this.onBack,
  this.elevation,
  this.alignment = WrapAlignment.start,
  this.runAlignment = WrapAlignment.center,
  this.crossAxisAlignment = WrapCrossAlignment.center,
}) : super(key: key);