PaintingColorBar class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- PaintingColorBar
Constructors
-
PaintingColorBar({required PaintingBoardController controller, Key? key, double itemSize = 40, Color backGroundColor = Colors.black12, EdgeInsets itemMargin = const EdgeInsets.symmetric(horizontal: 10, vertical: 5), ColorsType colorsType = ColorsType.material, List<
Color> ? customColors, ItemShape itemShape = ItemShape.circle, dynamic onTap(Color)?, List<BoxShadow> ? itemBoxShadow, BoxBorder? unselectedItemBorder, BoxBorder? selectedItemBorder = const Border.fromBorderSide(BorderSide(width: 2, color: Colors.black38)), EdgeInsets? paintingColorBarMargin, ScrollPhysics scrollPhysics = const BouncingScrollPhysics(), bool reverseColorList = false, BorderRadius? paintingColorBarBorderRadius, bool useIntelligentBorderRadius = true})
Properties
- backGroundColor → Color
-
The color of the background of the PaintingColorBar.
final
- colorsType → ColorsType
-
The types of colors to use.
final
- controller → PaintingBoardController
-
The PaintingBoardController used to manage the PaintingBoard and the PaintingColorBar.
final
-
customColors
→ List<
Color> ? -
The colors displayed in the PaintingColorBar.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- intelligentBorderRadius ↔ BorderRadius
-
latefinal
-
itemBoxShadow
→ List<
BoxShadow> ? -
The
BoxShadow
applied to each item.final - itemMargin → EdgeInsets
-
The margin applied at every item.
final
- itemShape → ItemShape
-
The ItemShape applied to each item.
final
- itemSize → double
-
The size of each color item.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onTap → (dynamic Function(Color)?)
-
The callback that is called every time an item color is tapped.
final
- paintingColorBarBorderRadius → BorderRadius?
-
The BorderRadius applied to the PaintingColorBar.
final
- paintingColorBarMargin → EdgeInsets?
-
The margin of the entire PaintingColorBar.
final
- reverseColorList → bool
-
This property, if set to
true
, allows to display the colors reversed.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollPhysics → ScrollPhysics
-
The ScrollPhysics applied to the list of items.
final
- selectedItemBorder → BoxBorder?
-
The BoxBorder applied to the item that is selected.
final
- unselectedItemBorder → BoxBorder?
-
The BoxBorder applied to each item that is unselected.
final
- useIntelligentBorderRadius → bool
-
This property, if set to
true
, automatically calculates the BorderRadius based on the item size.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