EasyColorPicker class

Inheritance

Constructors

EasyColorPicker({required Color selected, required dynamic onChanged(Color), double colorSelectorBorderRadius = 5, double optionsMargin = 2, double colorSelectorSize = 30, IconData selectedIcon = Icons.check_rounded, double selectedIconSize = 20, Color selectedIconColor = Colors.white, List<Color> colors = const [Colors.deepPurple, Colors.deepPurpleAccent, Colors.purple, Colors.purpleAccent, Colors.pinkAccent, Colors.pink, Colors.red, Colors.redAccent, Colors.deepOrange, Colors.deepOrangeAccent, Colors.orange, Colors.orangeAccent, Colors.amber, Colors.amberAccent, Colors.yellow, Colors.yellowAccent, Colors.green, Colors.lightGreen, Colors.lime, Colors.lightGreenAccent, Colors.greenAccent, Colors.lightBlueAccent, Colors.cyan, Colors.lightBlue, Colors.blue]})
Easy color picker widget

Properties

colors List<Color>
List of color to be displayed for selection
final
colorSelectorBorderRadius double
Border radius for each color selector
final
colorSelectorSize double
The size for each color selector option
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onChanged → dynamic Function(Color)
Function that returns the current selected color clicked by user
final
optionsMargin double
Margin to applied between options
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selected Color
The current selected color from color picker
final
selectedIcon IconData
Icon to be displayed on top of current select color option
final
selectedIconColor Color
Icon color for current selected color option
final
selectedIconSize double
Icon size for current selected color option
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.
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