ColorPicker.circle constructor
ColorPicker.circle({
- Key? key,
- required ValueChanged<
Color> onTap, - List<
Color> ? colors, - double extent = _defaultExtent,
- Color? initialColor,
- EdgeInsets padding = _defaultPadding,
- double spacing = _defaultSpacing,
- Widget? title = _defaultTitle,
A color picker that represents all MaterialColor via a GridView.
Circle uses a BoxDecoration with BoxShape.circle.
Implementation
ColorPicker.circle({
super.key,
required this.onTap,
List<Color>? colors,
this.extent = _defaultExtent,
this.initialColor,
this.padding = _defaultPadding,
this.spacing = _defaultSpacing,
this.title = _defaultTitle,
}) : colors = colors ?? _defaultColors,
isCompact = false,
decoration = BoxDecoration(
border: Border.all(),
shape: BoxShape.circle,
);