ZwapButton class

Inheritance

Constructors

ZwapButton({required ZwapButtonChild buttonChild, ZwapButtonDecorations? decorations, FocusNode? focusNode, double? height, double? width, bool hide = false, bool disabled = false, dynamic onHover(bool)?, EdgeInsets? margin, dynamic onLongTap()?, dynamic onTap()?, Map<Type, Action<Intent>>? actions, Map<ShortcutActivator, Intent>? shortcuts, bool loading = false, bool isSelected = false, ZwapButtonDecorations? selectedDecorations, double hoverElevation = 0, double completionValue = 1, String? tooltip, bool showTooltipOnlyOnDisabledState = false, ZwapButtonOptions? rightOptions, Key? key})
const
ZwapButton.customChild({required Widget child(ZwapButtonStatusDescription), ZwapButtonDecorations? decorations, FocusNode? focusNode, double? height = 44, double? width = 116, bool hide = false, bool disabled = false, EdgeInsets? margin, dynamic onHover(bool)?, dynamic onLongTap()?, dynamic onTap()?, Map<Type, Action<Intent>>? actions, Map<ShortcutActivator, Intent>? shortcuts, bool loading = false, bool isSelected = false, ZwapButtonDecorations? selectedDecorations, double hoverElevation = 0, double completionValue = 1, String? tooltip, bool showTooltipOnlyOnDisabledState = false, ZwapButtonOptions? rightOptions, Key? key})
const

Properties

actions Map<Type, Action<Intent>>?
A map of Intent keys to Action objects that defines which actions this widget knows about.
final
buttonChild ZwapButtonChild?
final
child → (Widget Function(ZwapButtonStatusDescription)?)
Content of button
final
completionValue double
This value must be between 0 and 1.
final
decorations ZwapButtonDecorations?
final
disabled bool
If true button will be disabled
final
focusNode FocusNode?
final
hashCode int
The hash code for this object.
no setterinherited
height double?
final
hide bool
Opacity of this button: hide ? 0 : 1
final
hoverElevation double
If different from 0 is used to animate button from bottom
final
isSelected bool
Some buttons can be use as "triggers" and have a selected state.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loading bool
Il true a loading indicator will be shown instead of button child
final
margin EdgeInsets?
final
onHover → (dynamic Function(bool)?)
final
onLongTap → (dynamic Function()?)
final
onTap → (dynamic Function()?)
final
rightOptions ZwapButtonOptions?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedDecorations ZwapButtonDecorations?
Used when isSelected is true
final
shortcuts Map<ShortcutActivator, Intent>?
The map of shortcuts that the ShortcutManager will be given to manage.
final
showTooltipOnlyOnDisabledState bool
If true and tooltip is provided, tooltip is showed only if the button is in the disabled state
final
tooltip String?
If not null a tooltip will be showed on hover
final
width double?
final

Methods

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

Static Properties

openOptions ↔ void Function()
getter/setter pair