MaterialColorPicker constructor
const
MaterialColorPicker({
- Key? key,
- Color? selectedColor,
- ValueChanged<
Color> ? onColorChange, - ValueChanged<
ColorSwatch?> ? onMainColorChange, - List<
ColorSwatch> ? colors, - bool shrinkWrap = true,
- ScrollPhysics? physics,
- bool allowShades = true,
- bool onlyShadeSelection = false,
- IconData iconSelected = Icons.check,
- double circleSize = 45.0,
- double spacing = 9.0,
- VoidCallback? onBack,
- double? elevation,
- WrapAlignment alignment = WrapAlignment.start,
- WrapAlignment runAlignment = WrapAlignment.center,
- 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);