SquareButton class

This is a square box with full custom style

Inheritance
Available extensions

Constructors

SquareButton({Key? key, BorderRadiusGeometry? brRadius, SquareSizeModel? squareSizeModel, double? borderRadius, SizeButton size = SizeButton.medium, Color? borderColor = Colors.transparent, Color? color = Colors.transparent, Color? iconColor = Colors.black, IconData? icon, double? iconSize, List<BoxShadow>? shadow, VoidCallback? onTap, double? borderWidth, String? svgIcon, double? width, bool? isSvgIcon = false, bool? hasShadow, Widget? child})

Properties

borderColor Color?
Border color , Background color, Icon Color
getter/setter pair
borderRadius double?
Circular border radius
getter/setter pair
borderWidth double?
Border width size
getter/setter pair
brRadius BorderRadiusGeometry?
Border radius
getter/setter pair
child Widget?
Child of box
getter/setter pair
color Color?
Border color , Background color, Icon Color
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasShadow bool?
Disable shadow
getter/setter pair
icon IconData?
Box icon
getter/setter pair
iconColor Color?
Border color , Background color, Icon Color
getter/setter pair
iconSize double?
Icon size
getter/setter pair
isSvgIcon bool?
Disable support svg icon
getter/setter pair
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onTap VoidCallback?
On tap method
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadow List<BoxShadow>?
List of box shadow
getter/setter pair
size SizeButton
Enum for size of box
getter/setter pair
squareSizeModel SquareSizeModel?
Model of square box
getter/setter pair
svgIcon String?
Path of svg icon
getter/setter pair
width double?
Size of box
getter/setter pair

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
detectWidget() Widget
Detector for make icon with svg or not
findSize() → void
Find size of box with enum
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pb({dynamic size}) Widget

Available on Widget, provided by the Pad extension

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, int wrapWidth = 65}) 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