EasyOutlinedButton class

Inheritance

Constructors

EasyOutlinedButton({Key? key, required String label, VoidCallback? onPressed, HapticImpact hapticImpact = HapticImpact.none, bool enabled = true, Color? labelColor, TextStyle? labelStyle, double? height, double? width, Color? color, Color? disabledColor, Widget? icon, bool isTrailingIcon = false, double? borderRadius, bool isRounded = false, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, double? spaceBetweenChildren})
EasyOutlinedButton is a OutlinedButton with simple parameters which makes it easy to style this button.
const

Properties

borderRadius double?
Border radius for the button, it will not work if isRounded is given
final
color Color?
Button color, it will not work if the button is disabled
final
disabledColor Color?
Disabled button color
final
enabled bool
To enable/disable the button, default is true
final
hapticImpact HapticImpact
Haptic feedback on button tap
final
hashCode int
The hash code for this object.
no setterinherited
height double?
Height of the button
final
icon Widget?
Icon for the button
final
isRounded bool
For completely rounded button
final
isTrailingIcon bool
Place the icon widget at trailing
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label String
Label for your button
final
labelColor Color?
Color of the label
final
labelStyle TextStyle?
TextStyle for the label in case the color is not sufficient
final
margin EdgeInsetsGeometry?
Button margin, default is EdgeInsets.zero
final
onPressed VoidCallback?
Callback for the button clicks
final
padding EdgeInsetsGeometry?
Button padding
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spaceBetweenChildren double?
Padding between label and icon
final
width double?
Width of the button
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