Hook-calling facade for button styles.
Returns ButtonStyle instances produced by the active palette plugin's
styles:button hook. labelStyle has no BuildContext and is a pure
static — button label text inherits the app's text theme font family.
Usage:
ElevatedButton(
style: AppButtonStyles.primary(context),
child: Text('Label', style: AppButtonStyles.labelStyle()),
)
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
-
labelStyle(
{double fontSize = 14, FontWeight fontWeight = FontWeight.w700, double letterSpacing = 1.2, Color? color}) → TextStyle - Standard label style for all CTA buttons.
-
primary(
BuildContext context) → ButtonStyle - Full-width primary action button.
-
primaryCompact(
BuildContext context) → ButtonStyle - Compact primary button — auto-sizes to content.
-
secondary(
BuildContext context) → ButtonStyle - Full-width outlined secondary button.
-
secondaryCompact(
BuildContext context) → ButtonStyle - Compact outlined secondary button — auto-sizes to content.