UnifiedButton class

Inheritance
Available extensions

Constructors

UnifiedButton({Key? key, UnifiedButtonCategory category = UnifiedButtonCategory.none, Widget? icon, required VoidCallback? onPressed, VoidCallback? onLongPress, ValueChanged<bool>? onHover, ValueChanged<bool>? onFocusChange, ButtonStyle? style, Clip clipBehavior = Clip.none, FocusNode? focusNode, bool autofocus = false, WidgetStatesController? statesController, required Widget child, EdgeInsetsGeometry? padding})
const
UnifiedButton.icon({Key? key, UnifiedButtonCategory category = UnifiedButtonCategory.none, Widget? icon, required VoidCallback? onPressed, VoidCallback? onLongPress, ValueChanged<bool>? onHover, ValueChanged<bool>? onFocusChange, ButtonStyle? style, Clip clipBehavior = Clip.none, FocusNode? focusNode, bool autofocus = false, WidgetStatesController? statesController, Axis direction = Axis.horizontal, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center, MainAxisSize mainAxisSize = MainAxisSize.min, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, TextDirection? textDirection, VerticalDirection verticalDirection = VerticalDirection.down, TextBaseline? textBaseline, required Widget child, EdgeInsetsGeometry? padding})
const

Properties

autofocus bool
autofocus
final
category UnifiedButtonCategory
final
child Widget
child
final
clipBehavior Clip
clipBehavior
final
crossAxisAlignment CrossAxisAlignment
final
direction Axis
final
focusNode FocusNode?
focusNode
final
hashCode int
The hash code for this object.
no setterinherited
icon Widget?
icon
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mainAxisAlignment MainAxisAlignment
Flex
final
mainAxisSize MainAxisSize
final
onFocusChange ValueChanged<bool>?
onFocusChange
final
onHover ValueChanged<bool>?
onHover
final
onLongPress VoidCallback?
onLongPress
final
onPressed VoidCallback?
onPressed
final
padding EdgeInsetsGeometry?
Padding
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statesController WidgetStatesController?
statesController
final
style ButtonStyle?
style
final
textBaseline TextBaseline?
final
textDirection TextDirection?
final
verticalDirection VerticalDirection
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