ButtonStyle class

Implemented types
Available extensions

Constructors

ButtonStyle({required AbstractButtonStyle variance, ButtonSize size = ButtonSize.normal, ButtonDensity density = ButtonDensity.normal, ButtonShape shape = ButtonShape.rectangle})
const
ButtonStyle.card({ButtonSize size = ButtonSize.normal, ButtonDensity density = ButtonDensity.normal, ButtonShape shape = ButtonShape.rectangle})
const
ButtonStyle.destructive({ButtonSize size = ButtonSize.normal, ButtonDensity density = ButtonDensity.normal, ButtonShape shape = ButtonShape.rectangle})
const
ButtonStyle.destructiveIcon({ButtonSize size = ButtonSize.normal, ButtonDensity density = ButtonDensity.icon, ButtonShape shape = ButtonShape.rectangle})
const
ButtonStyle.fixed({ButtonSize size = ButtonSize.normal, ButtonDensity density = ButtonDensity.normal, ButtonShape shape = ButtonShape.rectangle})
const
ButtonStyle.fixedIcon({ButtonSize size = ButtonSize.normal, ButtonDensity density = ButtonDensity.icon, ButtonShape shape = ButtonShape.rectangle})
const
ButtonStyle.ghost({ButtonSize size = ButtonSize.normal, ButtonDensity density = ButtonDensity.normal, ButtonShape shape = ButtonShape.rectangle})
const
ButtonStyle.ghostIcon({ButtonSize size = ButtonSize.normal, ButtonDensity density = ButtonDensity.icon, ButtonShape shape = ButtonShape.rectangle})
const
const
ButtonStyle.linkIcon({ButtonSize size = ButtonSize.normal, ButtonDensity density = ButtonDensity.icon, ButtonShape shape = ButtonShape.rectangle})
const
ButtonStyle.menu({ButtonSize size = ButtonSize.normal, ButtonDensity density = ButtonDensity.normal, ButtonShape shape = ButtonShape.rectangle})
const
ButtonStyle.menubar({ButtonSize size = ButtonSize.normal, ButtonDensity density = ButtonDensity.normal, ButtonShape shape = ButtonShape.rectangle})
const
ButtonStyle.muted({ButtonSize size = ButtonSize.normal, ButtonDensity density = ButtonDensity.normal, ButtonShape shape = ButtonShape.rectangle})
const
ButtonStyle.outline({ButtonSize size = ButtonSize.normal, ButtonDensity density = ButtonDensity.normal, ButtonShape shape = ButtonShape.rectangle})
const
ButtonStyle.outlineIcon({ButtonSize size = ButtonSize.normal, ButtonDensity density = ButtonDensity.icon, ButtonShape shape = ButtonShape.rectangle})
const
ButtonStyle.primary({ButtonSize size = ButtonSize.normal, ButtonDensity density = ButtonDensity.normal, ButtonShape shape = ButtonShape.rectangle})
const
ButtonStyle.primaryIcon({ButtonSize size = ButtonSize.normal, ButtonDensity density = ButtonDensity.icon, ButtonShape shape = ButtonShape.rectangle})
const
ButtonStyle.secondary({ButtonSize size = ButtonSize.normal, ButtonDensity density = ButtonDensity.normal, ButtonShape shape = ButtonShape.rectangle})
const
ButtonStyle.secondaryIcon({ButtonSize size = ButtonSize.normal, ButtonDensity density = ButtonDensity.icon, ButtonShape shape = ButtonShape.rectangle})
const
ButtonStyle.text({ButtonSize size = ButtonSize.normal, ButtonDensity density = ButtonDensity.normal, ButtonShape shape = ButtonShape.rectangle})
const
ButtonStyle.textIcon({ButtonSize size = ButtonSize.normal, ButtonDensity density = ButtonDensity.icon, ButtonShape shape = ButtonShape.rectangle})
const

Properties

decoration → ButtonStateProperty<Decoration>
no setteroverride
density → ButtonDensity
final
hashCode → int
The hash code for this object.
no setterinherited
iconTheme → ButtonStateProperty<IconThemeData>
no setteroverride
margin → ButtonStateProperty<EdgeInsetsGeometry>
no setteroverride
mouseCursor → ButtonStateProperty<MouseCursor>
no setteroverride
padding → ButtonStateProperty<EdgeInsetsGeometry>
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shape → ButtonShape
final
size → ButtonSize
final
textStyle → ButtonStateProperty<TextStyle>
no setteroverride
variance → AbstractButtonStyle
final

Methods

copyWith({ButtonStatePropertyDelegate<Decoration>? decoration, ButtonStatePropertyDelegate<MouseCursor>? mouseCursor, ButtonStatePropertyDelegate<EdgeInsetsGeometry>? padding, ButtonStatePropertyDelegate<TextStyle>? textStyle, ButtonStatePropertyDelegate<IconThemeData>? iconTheme, ButtonStatePropertyDelegate<EdgeInsetsGeometry>? margin}) → AbstractButtonStyle

Available on AbstractButtonStyle, provided by the ButtonStyleExtension extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
withBackgroundColor({Color? color, Color? hoverColor, Color? focusColor, Color? disabledColor}) → AbstractButtonStyle

Available on AbstractButtonStyle, provided by the ButtonStyleExtension extension

withBorder({Border? border, Border? hoverBorder, Border? focusBorder, Border? disabledBorder}) → AbstractButtonStyle

Available on AbstractButtonStyle, provided by the ButtonStyleExtension extension

withBorderRadius({BorderRadiusGeometry? borderRadius, BorderRadiusGeometry? hoverBorderRadius, BorderRadiusGeometry? focusBorderRadius, BorderRadiusGeometry? disabledBorderRadius}) → AbstractButtonStyle

Available on AbstractButtonStyle, provided by the ButtonStyleExtension extension

withForegroundColor({Color? color, Color? hoverColor, Color? focusColor, Color? disabledColor}) → AbstractButtonStyle

Available on AbstractButtonStyle, provided by the ButtonStyleExtension extension

withPadding({EdgeInsetsGeometry? padding, EdgeInsetsGeometry? hoverPadding, EdgeInsetsGeometry? focusPadding, EdgeInsetsGeometry? disabledPadding}) → AbstractButtonStyle

Available on AbstractButtonStyle, provided by the ButtonStyleExtension extension

Operators

operator ==(Object other) → bool
The equality operator.
inherited