ThemedColorPicker class

Inheritance

Constructors

ThemedColorPicker({Key? key, String? labelText, Widget? label, bool disabled = false, void onChanged(Color)?, Color? value, List<String> errors = const [], bool hideDetails = false, EdgeInsets? padding, bool dense = false, IconData? prefixIcon, VoidCallback? onPrefixTap, String? placeholder, String saveText = "OK", String cancelText = "Cancel", List<ColorPickerType> enabledTypes = const [ColorPickerType.both, ColorPickerType.wheel], Widget? customChild, Color hoverColor = Colors.transparent, Color focusColor = Colors.transparent, Color splashColor = Colors.transparent, Color highlightColor = Colors.transparent, BorderRadius borderRadius = const BorderRadius.all(Radius.circular(10)), double maxWidth = 400})
ThemedColorPicker is a ThemedTextInput that allows the user to pick a color.
const

Properties

borderRadius BorderRadius
borderRadius is the border radius of the input. Only will affect when customChild is submitted. By default, it will use BorderRadius.circular(10).
final
cancelText String
cancelText is the text that will be displayed on the cancel button.
final
customChild Widget?
customChild is the custom child of the input. If this is not null, the input will be render as a ThemedTextInput.
final
dense bool
dense is the state of the input being dense.
final
disabled bool
value is the value of the input.
final
enabledTypes List<ColorPickerType>
enabledTypes is the list of enabled color picker types.
final
errors List<String>
errors is the list of errors of the input.
final
focusColor Color
focusColor is the focus color of the input. Only will affect when customChild is submitted. By default, it will use Colors.transparent.
final
hashCode int
The hash code for this object.
no setterinherited
hideDetails bool
hideDetails is the state of hiding the details of the input.
final
highlightColor Color
highlightColor is the highlight color of the input. Only will affect when customChild is submitted. By default, it will use Colors.transparent.
final
hoverColor Color
hoverColor is the hover color of the input. Only will affect when customChild is submitted. By default, it will use Colors.transparent.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label Widget?
label is the widget that will be displayed on the label. Avoid submit label and labelText at the same time. We priorize label over labelText.
final
labelText String?
labelText is the text that will be displayed on the label. Avoid submit label and labelText at the same time. We priorize label over labelText.
final
maxWidth double
maxWidth is the max width of the dialog.
final
onChanged → (void Function(Color)?)
disabled is the state of the input being disabled.
final
onPrefixTap VoidCallback?
onPrefixTap is the callback function when the prefix is tapped.
final
padding EdgeInsets?
padding is the padding of the input.
final
placeholder String?
placeholder is the placeholder of the input.
final
prefixIcon IconData?
prefixIcon is the prefix icon of the input.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
saveText String
saveText is the text that will be displayed on the save button.
final
splashColor Color
splashColor is the splash color of the input. Only will affect when customChild is submitted. By default, it will use Colors.transparent.
final
value Color?
onChanged is the callback function when the input is changed.
final

Methods

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