ButtonStyle class
- Implemented types
- Available extensions
Constructors
- ButtonStyle({required ButtonVariance 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
- ButtonStyle.link({ButtonSize size = ButtonSize.normal, ButtonDensity density = ButtonDensity.normal, ButtonShape shape = ButtonShape.rectangle})
-
const
- ButtonStyle.linkIcon({ButtonSize size = ButtonSize.normal, ButtonDensity density = ButtonDensity.icon, ButtonShape shape = ButtonShape.rectangle})
-
const
-
const
-
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 → ButtonVariance
-
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited