WOIButtonStyle class
This style class is used to style the WOITextButton This has all of the properties to change the appearance of the button
Constructors
-
WOIButtonStyle({BorderRadius? borderRadius, Border? border, Widget? prefixWidget, Widget? suffixWidget, Color? backgroundColor, List<
BoxShadow> ? boxShadow, Gradient? gradient, EdgeInsets? textMargin})
Properties
- backgroundColor ↔ Color?
-
To speficy a color of the button
getter/setter pair
- border ↔ Border?
-
To provide with the custom border instance
getter/setter pair
- borderRadius ↔ BorderRadius?
-
To update the border radius
getter/setter pair
-
boxShadow
↔ List<
BoxShadow> ? -
To Provide the custom box shadow list for the button
getter/setter pair
- gradient ↔ Gradient?
-
This is to provide gradient value in the button
The priority for this is more then the background Color
So if both backgroundColor and gradient is provided then it will go with the gradient
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- prefixWidget ↔ Widget?
-
This is used to provide the prefix widget before the text
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- suffixWidget ↔ Widget?
-
This is used to provide the suffix widget after the text
getter/setter pair
- textMargin ↔ EdgeInsets?
-
To specify margins around the text widget that is in the center
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited