ButtonStyles class

Constructors

ButtonStyles()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

danger({double radius = 12, EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 20, vertical: 14)}) ButtonStyle
Destructive (delete, remove) button
disabled({double radius = 12, EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 20, vertical: 14)}) ButtonStyle
Disabled style (for preview or manual styling)
ghost({Color? foreground, double radius = 12, EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 20, vertical: 14)}) ButtonStyle
Minimal ghost-style button (transparent)
outline({Color? borderColor, Color? foreground, double radius = 12, double borderWidth = 1.2, EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 20, vertical: 14)}) ButtonStyle
Outlined border button
pill({Color? background, Color? foreground, EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 24, vertical: 14)}) ButtonStyle
Rounded pill-style button
primary({Color? background, Color? foreground, double radius = 12, EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 20, vertical: 14)}) ButtonStyle
Elevated Material button style (primary CTA)