MinimalButtonPaint class
A MinimalButton's paint for tone, scale and style, at the theme
in force where it is made.
Constructors
- MinimalButtonPaint.of(BuildContext context, {MinimalButtonTone tone = MinimalButtonTone.primary, MinimalButtonScale scale = MinimalButtonScale.medium, MinimalStyle? style})
-
The paint of a button of
toneandscale,styleover the tone's component theme.factory
Properties
- bg → Color?
-
The variant's fill; null for a bare (ghost) button.
final
- border → Color?
-
The variant's rim colour; null for none.
final
- fg → Color
-
The variant's ink.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
The size's height, before density and text size.
final
- hPad → double
-
The size's side padding.
final
- iconSize → double
-
The size's glyph.
final
-
layers
→ List<
MinimalStyle?> -
The style layers, the caller's over the variant's.
final
- rest → MinimalStyleOf
-
The style at rest, as a pressable reads it.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- t → MinimalThemeData
-
The theme it was made at.
final
- type → TextStyle
-
The size's type.
final
Methods
-
colors(
MinimalStyleOf style) → (Color?, Color) - The surface and label colors for this button's current state.
-
face(
BuildContext context, Set< WidgetState> states, {required Widget content(MinimalStyleOf so, Color ink), bool expand = false, Decoration? foregroundDecoration}) → Widget -
The face for
states, itscontentdrawn in the ink of the moment;expandfills the width. -
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