WOIIconButton class

A square button with the Icon in center the border radius of the button can be changed making it to the circular button by providing specific value to borderRadius variable Here is how you can use the widget:


WOIIconButton(
  child: Icon( Icons.percent, color: Colors.white, ),
  onTap: () {},
)

iconButton

You can change the icon color and other properties accordingly

Inheritance

Constructors

WOIIconButton({Key? key, double size = 35, Color backgroundColor = Colors.black, Border? border, List<BoxShadow>? boxShadow, BorderRadius? borderRadius, bool isDisabled = false, required Function? onTap, Widget? child, WOIButtonStyle? buttonStyle})
An Icon button with custom border radius
const

Properties

backgroundColor Color
Backgound Color around the Icon
final
border Border?
Border of the Icon button
final
borderRadius BorderRadius?
Border radisu for the button
final
boxShadow List<BoxShadow>?
Shadow for the button
final
buttonStyle WOIButtonStyle?
final
child Widget?
If you want to add some custom child of the icon button like Text
final
hashCode int
The hash code for this object.
no setterinherited
isDisabled bool
to let know if the button should be clickable or not
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onTap Function?
Tap action for the button on what to happen
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size double
Size for the Icon
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