What Compose's Button sets in code (behavior.yaml, verified at the pin).
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
Constants
- extraLargeVerticalPadding → const Dp
-
The extra-large (136dp) button's top and bottom content padding; no token
states it. (
Button.ktline 1011.) - extraSmallContentPaddingBottom → const Dp
-
The extra-small button's bottom padding; no token states it. (
Button.ktline 965.) - extraSmallContentPaddingEnd → const Dp
-
The extra-small button's trailing padding (as
extraSmallContentPaddingStart). (
Button.ktline 963.) - extraSmallContentPaddingStart → const Dp
-
The extra-small button's leading padding. Compose hard-codes 12dp beside a
TODO until ButtonXSmallTokens.LeadingSpace (16) is corrected; the DB
already says 12 (overrides.yaml xsmall-button-padding). (
Button.ktline 963.) - extraSmallContentPaddingTop → const Dp
-
The extra-small button's top padding; no token states it. (
Button.ktline 965.) - extraSmallIconSpacing → const Dp
-
The gap between an extra-small button's icon and label. Compose hard-codes
4dp beside a TODO until ButtonXSmallTokens.IconLabelSpace (8) is
corrected; the DB already says 4. (
Button.ktline 1108.) - largeVerticalPadding → const Dp
-
The large (96dp) button's top and bottom content padding; no token states
it. (
Button.ktline 1663.) - mediumVerticalPadding → const Dp
-
The medium (56dp) button's top and bottom content padding; no token states
it. (
Button.ktline 1660.) - minWidth → const Dp
-
A common button's smallest width (ButtonDefaults.MinWidth, the Row's
defaultMinSize in Button); toggle buttons set none. (
Button.ktline 1053.) - pressMotion → const ExpressiveMotionKey
-
The spring a button's shape morphs with on press; an effects spring on
purpose, so the press never bounces. (
Button.ktline 253.) - smallVerticalPadding → const Dp
-
The small (40dp) button's top and bottom content padding on a touch screen
(contentPaddingFor below the medium height); no token states it.
(
Button.ktline 1653.) - textButtonContentColor → const ExpressiveColorRole
-
A text button's label and icon colour. Compose passes Primary beside a
TODO until TextButtonTokens' colours (OnSurfaceVariant) are corrected; the
DB already says primary (overrides.yaml text-button-content-color).
(
Button.ktline 1414.) - verticalPadding → const Dp
-
The default (baseline) button's top and bottom content padding; no token
states it. (
Button.ktline 915.)