ChromeStyle class final

One family's chrome recipe. Fonts come from the theme: headings, titles and labels use its key font; body text uses bodyFont (null = the key font too).

Annotations

Constructors

ChromeStyle({BundledFont? bodyFont, BundledFont? handFont, double bodyWeight = 400, double headingWeight = 500, double? headingWidth, bool headingCaps = false, double headingTracking = 0, double containerRadius = 28, double controlRadius = stadium, ChromeCorner corner = ChromeCorner.round, ChromeEdge edge = ChromeEdge.none, double edgeWidth = 0, double offsetShadow = 0, double? elevation, bool flatSurfaces = false, bool accentSelection = false, bool underlineFields = false})
Creates a recipe; the defaults are stock Material 3.
const

Properties

accentSelection → bool
Selected chips, switches and filled buttons take the = key's fill and label (already checked for contrast) instead of tonal colours.
final
bodyFont → BundledFont?
Body text (list subtitles, paragraphs); null = the theme's key font.
final
bodyWeight → double
CSS weight of body text.
final
containerRadius → double
Corner radius (or chamfer) of dialogs, sheets, cards and panels.
final
controlRadius → double
Corner radius (or chamfer) of chips, buttons and fields.
final
corner → ChromeCorner
Rounded or chamfered corners.
final
edge → ChromeEdge
Edge colour of containers and controls.
final
edgeWidth → double
Edge width in logical pixels (0 with ChromeEdge.none).
final
elevation → double?
Elevation of dialogs, sheets and cards; null = Material's.
final
flatSurfaces → bool
Dialogs, sheets and cards on the calculator background (edged, with no elevation or tint), not on Material's tonal containers.
final
handFont → BundledFont?
Screen and dialog titles (display and headline text) in this font at its one weight (Paper & ink's handwriting); null = the heading font. Never list, value or number text.
final
hashCode → int
The hash code for this object.
no setterinherited
headingCaps → bool
Section headers in capitals (with headingTracking).
final
headingTracking → double
Letter spacing of capitalised section headers, in logical pixels.
final
headingWeight → double
CSS weight of display, headline and title text (labels are 100 lighter, never under 500).
final
headingWidth → double?
wdth of heading text, for fonts that have the axis.
final
offsetShadow → double
A hard, unblurred shadow this far down and to the end in the edge colour (Neo-brutalism, NeoPOP); 0 = none.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
underlineFields → bool
Text fields drawn as a rule underneath (Paper & ink's ledger line).
final

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

stadium → const double
A radius that makes a stadium (fully round ends).