ColorPickerActionButtons class

Defines the FlexColorPicker OK and Cancel actions buttons and their style.

You can define if action buttons are on a top toolbar or only in the dialog bottom. The toolbar buttons are plain icon only buttons. For the Dialog buttons you can choose between TextButton, OutlinedButton and ElevatedButton.

The used icons can be changed form default ones, as can used tooltips.

Used by FlexColorPicker to define action buttons and their style.

Mixed in types
Annotations

Constructors

ColorPickerActionButtons({bool okButton = false, bool closeButton = false, IconData okIcon = Icons.check, IconData closeIcon = Icons.close, bool closeIsLast = true, String? okTooltip, String? closeTooltip, bool closeTooltipIsClose = true, IconThemeData? toolIconsThemeData, VisualDensity? visualDensity, EdgeInsetsGeometry padding = EdgeInsets.zero, AlignmentGeometry alignment = Alignment.center, double splashRadius = 24, BoxConstraints constraints = const BoxConstraints(minHeight: 42, minWidth: 42), bool dialogActionButtons = true, bool dialogActionOnlyOkButton = false, ColorPickerActionButtonOrder dialogActionOrder = ColorPickerActionButtonOrder.okIsRight, bool dialogActionIcons = false, String? dialogCancelButtonLabel, ColorPickerActionButtonType dialogCancelButtonType = ColorPickerActionButtonType.text, String? dialogOkButtonLabel, ColorPickerActionButtonType dialogOkButtonType = ColorPickerActionButtonType.text, bool useRootNavigator = true})
Default const constructor.
const

Properties

alignment AlignmentGeometry
Defines how the icon is positioned within the IconButton.
final
closeButton bool
Dialog has a Close icon button on top toolbar to cancel and close the color picker dialog.
final
closeIcon IconData
Icon used for the close action icon in the color picker dialog.
final
closeIsLast bool
Close icon is last in the color picker title toolbar.
final
closeTooltip String?
Label used as tooltip for close toolbar button.
final
closeTooltipIsClose bool
Close toolbar icon button uses "close" material localization as default label.
final
constraints BoxConstraints
Optional size constraints for the icon button.
final
dialogActionButtons bool
If set to false, the bottom dialog action buttons att the bottom are removed.
final
dialogActionIcons bool
If set to true, the dialog bottom action buttons will be prefixed with an icon.
final
dialogActionOnlyOkButton bool
If set to true, the dialog will only have an OK button and no Cancel when dialogActionButtons is true.
final
dialogActionOrder ColorPickerActionButtonOrder
Defines the order of the OK and Cancel actions buttons at the bottom of the dialog.
final
dialogCancelButtonLabel String?
Color picker dialog cancel button label.
final
dialogCancelButtonType ColorPickerActionButtonType
Type of button used in the dialog for the Cancel button.
final
dialogOkButtonLabel String?
Color picker dialog OK button label.
final
dialogOkButtonType ColorPickerActionButtonType
Type of button used in the dialog for the OK button.
final
hashCode int
The hash code for this object.
no setteroverride
okButton bool
Dialog has an OK icon button on top toolbar to select active color and close the color picker dialog.
final
okIcon IconData
Icon used for the OK action icon in the color picker dialog.
final
okTooltip String?
Label used as tooltip for OK toolbar button.
final
padding EdgeInsetsGeometry
The padding around the toolbar icon buttons. The entire padded icon will react to input gestures.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
splashRadius double
The splash radius on the toolbar icon buttons.
final
toolIconsThemeData IconThemeData?
The theme for the toolbar icons.
final
useRootNavigator bool
The useRootNavigator argument is used to determine whether to push the ColorPicker dialog to the Navigator furthest from or nearest to the given context.
final
visualDensity VisualDensity?
Defines how compact the toolbar icon button layout will be.
final

Methods

copyWith({bool? okButton, bool? closeButton, IconData? okIcon, IconData? closeIcon, bool? closeIsLast, String? okTooltip, String? closeTooltip, bool? closeTooltipIsClose, IconThemeData? toolIconsThemeData, VisualDensity? visualDensity, EdgeInsetsGeometry? padding, AlignmentGeometry? alignment, double? splashRadius, BoxConstraints? constraints, bool? dialogActionButtons, bool? dialogActionOnlyOkButton, ColorPickerActionButtonOrder? dialogActionOrder, bool? dialogActionIcons, String? dialogCancelButtonLabel, ColorPickerActionButtonType? dialogCancelButtonType, String? dialogOkButtonLabel, ColorPickerActionButtonType? dialogOkButtonType, bool? useRootNavigator}) ColorPickerActionButtons
Copy the object with one or more provided properties changed.
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
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override