ButtonStyle class

ButtonStyle is a model class for button widget. It contains the styles for the button widget.

ButtonStyle(
textStyle: TextStyle(),
iconTint: Colors.white,
iconBackground: Colors.white,
iconBorder: Border.all(),
iconBorderRadius: 50,
width: 100,
height: 100,
background: Colors.white,
border: Border.all(),
borderRadius: BorderRadius.circular(20),
gradient: LinearGradient(),
);
Inheritance

Constructors

ButtonStyle({TextStyle? textStyle, Color? iconTint, Color? iconBackground, BoxBorder? iconBorder, double? iconBorderRadius, double? iconHeight, double? iconWidth, double? width, double? height, Color? background, BoxBorder? border, double? borderRadius, Gradient? gradient})
const

Properties

background Color?
background provides background color to the widget
finalinherited
border BoxBorder?
border provides border around the widget
finalinherited
borderRadius double?
borderRadius provides radius to the border around the widget
finalinherited
borderRadiusGeometry BorderRadiusGeometry?
borderRadiusGeometry
finalinherited
elevation double?
elevation
finalinherited
gradient Gradient?
gradient provides (background) gradient to the widget
finalinherited
hashCode int
The hash code for this object.
no setterinherited
height double?
height provides height to the widget
finalinherited
iconBackground Color?
iconBackground sets background color for icon
final
iconBorder BoxBorder?
iconBorder sets border for icon
final
iconBorderRadius double?
iconBorderRadius sets border radius for icon
final
iconHeight double?
iconHeight sets height for icon
final
iconTint Color?
iconTint sets color for icon
final
iconWidth double?
iconWidth sets width for icon
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textStyle TextStyle?
textStyle sets TextStyle for text
final
width double?
width provides width to the widget
finalinherited

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