DesignColorPicker class

An area over a hue slider (and an alpha slider), on one controller.

DesignColorPicker(controller: controller, areaBuilder: (context, area) => const SizedBox.expand(), areaThumbBuilder: (context, area) => const SizedBox(width: 16, height: 16), trackBuilder: (context, channel, color) => const SizedBox(height: 8), thumbBuilder: (context, states) => const SizedBox(width: 16, height: 16))
Inheritance

Constructors

DesignColorPicker({Key? key, required DesignColorController controller, required Widget areaBuilder(BuildContext context, DesignColorAreaDetails area), required Widget areaThumbBuilder(BuildContext context, DesignColorAreaDetails area), required Widget trackBuilder(BuildContext context, DesignColorChannel channel, HSVColor color), required DesignHandleBuilder thumbBuilder, bool showAlpha = false, double areaHeight = 180, Widget layoutBuilder(BuildContext context, List<Widget> parts)?})
A picker over controller.
const

Properties

areaBuilder → Widget Function(BuildContext context, DesignColorAreaDetails area)
Paints the area.
final
areaHeight → double
The area's height.
final
areaThumbBuilder → Widget Function(BuildContext context, DesignColorAreaDetails area)
Paints the area's thumb.
final
controller → DesignColorController
The colour. The caller makes it, keeps it across rebuilds and disposes it.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
layoutBuilder → Widget Function(BuildContext context, List<Widget> parts)?
Lays out the area and sliders (with the look's hex field, swatches); null: a column.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showAlpha → bool
Whether it has an alpha slider.
final
thumbBuilder → DesignHandleBuilder
Paints a slider's thumb.
final
trackBuilder → Widget Function(BuildContext context, DesignColorChannel channel, HSVColor color)
Paints a slider's track.
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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, 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