ColorPicker class
The default layout of Color Picker.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ColorPicker
Constructors
-
ColorPicker({Key? key, required Color pickerColor, required ValueChanged<
Color> onColorChanged, HSVColor? pickerHsvColor, ValueChanged<HSVColor> ? onHsvColorChanged, PaletteType paletteType = PaletteType.hsvWithHue, bool enableAlpha = true, @Deprecated('Use empty list in [labelTypes] to disable label.') bool showLabel = true, List<ColorLabelType> labelTypes = const [ColorLabelType.rgb, ColorLabelType.hsv, ColorLabelType.hsl], @Deprecated('Use Theme.of(context).textTheme.bodyText1 & 2 to alter text style.') TextStyle? labelTextStyle, bool displayThumbColor = false, bool portraitOnly = false, double colorPickerWidth = 300.0, double pickerAreaHeightPercent = 1.0, BorderRadius pickerAreaBorderRadius = const BorderRadius.all(Radius.zero), bool hexInputBar = false, TextEditingController? hexInputController, List<Color> ? colorHistory, ValueChanged<List< ? onHistoryChanged})Color> > -
const
Properties
-
colorHistory
→ List<
Color> ? -
final
- colorPickerWidth → double
-
final
- displayThumbColor → bool
-
final
- enableAlpha → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hexInputBar → bool
-
final
- hexInputController → TextEditingController?
-
Allows setting the color using text input, via TextEditingController.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- labelTextStyle → TextStyle?
-
final
-
labelTypes
→ List<
ColorLabelType> -
final
-
onColorChanged
→ ValueChanged<
Color> -
final
-
onHistoryChanged
→ ValueChanged<
List< ?Color> > -
final
-
onHsvColorChanged
→ ValueChanged<
HSVColor> ? -
final
- paletteType → PaletteType
-
final
- pickerAreaBorderRadius → BorderRadius
-
final
- pickerAreaHeightPercent → double
-
final
- pickerColor → Color
-
final
- pickerHsvColor → HSVColor?
-
final
- portraitOnly → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showLabel → bool
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _ColorPickerState -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited