CupertinoColorPickerField class

Inheritance

Constructors

CupertinoColorPickerField({Key? key, FocusNode? focusNode, bool colorListReversed = false, BoxDecoration? decoration = _kDefaultRoundedBorderDecoration, EdgeInsetsGeometry padding = const EdgeInsets.all(6.0), required Color defaultColor, bool readOnly = false, List<Color> colors = const <Color>[], ValueChanged<List<Color>>? onChanged, ValueChanged<List<Color>>? onSubmitted, bool? enabled, TextStyle? style, ScrollPhysics? scrollPhysics, ScrollController? scrollController, int? maxColors, ColorPickerFieldController? controller, String? restorationId, String? placeholder, TextAlign textAlign = TextAlign.start, TextStyle? placeholderStyle = _kDefaultPlaceholderStyle, ClearButtonVisibilityMode clearButtonMode = ClearButtonVisibilityMode.never, bool enableLightness = false, bool enableSaturation = false})
const
CupertinoColorPickerField.borderless({Key? key, FocusNode? focusNode, BoxDecoration? decoration, bool colorListReversed = false, EdgeInsetsGeometry padding = const EdgeInsets.all(6.0), required Color defaultColor, bool readOnly = false, List<Color> colors = const <Color>[], ValueChanged<List<Color>>? onChanged, ValueChanged<List<Color>>? onSubmitted, bool? enabled, TextStyle? style, ScrollPhysics? scrollPhysics, ScrollController? scrollController, int? maxColors, ColorPickerFieldController? controller, String? restorationId, String? placeholder, TextAlign textAlign = TextAlign.start, TextStyle? placeholderStyle = _kDefaultPlaceholderStyle, ClearButtonVisibilityMode clearButtonMode = ClearButtonVisibilityMode.never, bool enableLightness = false, bool enableSaturation = false})
const

Properties

clearButtonMode ClearButtonVisibilityMode
Defaults to never appearing and cannot be null.
final
colorListReversed bool
Controls if the color list appears reversed, use with caution as it will override the Directionality
final
colors List<Color>
An initial list of colors, if not passed, default to an empty list
final
controller ColorPickerFieldController?
Provides a way to listen for colors list changes Controls the colors being edited.
final
decoration BoxDecoration?
Controls the BoxDecoration of the box behind the text input.
final
defaultColor Color
Required. Controls the default color of the color picker launched from the field.
final
enabled bool?
Controls if the color picker field is enabled, default to true
final
enableLightness bool
Enable the lightness control for the color value.
final
enableSaturation bool
Enable the saturation control for the color value.
final
focusNode FocusNode?
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maxColors int?
If maxColors is set to this value, only the "current colors number" part of the colors counter is shown.
final
onChanged ValueChanged<List<Color>>?
final
onSubmitted ValueChanged<List<Color>>?
A callback triggered everytime a color was added or removed to/from the field
final
padding EdgeInsetsGeometry
Padding around the text entry area between the prefix and suffix or the clear button when clearButtonMode is not never.
final
placeholder String?
A lighter colored placeholder hint that appears on the first line of the text field when the text entry is empty.
final
placeholderStyle TextStyle?
The style to use for the placeholder text.
final
readOnly bool
Controls of the color picker field is read only, defaults to false
final
restorationId String?
Restoration ID to save and restore the state of the color picker field.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollController ScrollController?
Responsible for controlling the horizontal animated colors list in the field
final
scrollPhysics ScrollPhysics?
If null, defaults to default for the platform scroll physics. Responsible for the scroll physics of the horizontal animated colors list in the field
final
style TextStyle?
This text style is used as the base style for the decoration.
final
textAlign TextAlign
Controls the text align of the placeholder
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<CupertinoColorPickerField>
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.
override
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}) 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