DimensionResources class

The 2018 spec has thirteen text styles:

NAME         SIZE  WEIGHT  SPACING
headline1    96.0  light   -1.5
headline2    60.0  light   -0.5
headline3    48.0  normal   0.0
headline4    34.0  normal   0.25
headline5    24.0  normal   0.0
headline6    20.0  medium   0.15
subtitle1    16.0  normal   0.15
subtitle2    14.0  medium   0.1
body1        16.0  normal   0.5
body2        14.0  normal   0.25
button       14.0  medium   0.75
caption      12.0  normal   0.4
overline     10.0  normal   1.5

Where "light" is FontWeight.w300, "normal" is FontWeight.w400 and "medium" is FontWeight.w500.

Constructors

DimensionResources()

Properties

fontHeightBody1 double
read-only
fontHeightBody2 double
read-only
fontHeightButton double
read-only
fontHeightCaption double
read-only
fontHeightHeadline1 double
read-only
fontHeightHeadline2 double
read-only
fontHeightHeadline3 double
read-only
fontHeightHeadline4 double
read-only
fontHeightHeadline5 double
read-only
fontHeightHeadline6 double
read-only
fontHeightOverline double
read-only
fontHeightSubtitle1 double
read-only
fontHeightSubtitle2 double
read-only
fontLetterSpacingBody1 double
read-only
fontLetterSpacingBody2 double
read-only
fontLetterSpacingButton double
read-only
fontLetterSpacingCaption double
read-only
fontLetterSpacingHeadline1 double
read-only
fontLetterSpacingHeadline2 double
read-only
fontLetterSpacingHeadline3 double
read-only
fontLetterSpacingHeadline4 double
read-only
fontLetterSpacingHeadline5 double
read-only
fontLetterSpacingHeadline6 double
read-only
fontLetterSpacingOverline double
read-only
fontLetterSpacingSectionTitle double
read-only
fontLetterSpacingSubtitle1 double
read-only
fontLetterSpacingSubtitle2 double
read-only
fontSizeBody1 double
read-only
fontSizeBody2 double
read-only
fontSizeButton double
read-only
fontSizeCaption double
read-only
fontSizeHeadline1 double
read-only
fontSizeHeadline2 double
read-only
fontSizeHeadline3 double
read-only
fontSizeHeadline4 double
read-only
fontSizeHeadline5 double
read-only
fontSizeHeadline6 double
read-only
fontSizeOverline double
read-only
fontSizeSubtitle1 double
read-only
fontSizeSubtitle2 double
read-only
fontWordSpacingBody1 double
read-only
fontWordSpacingBody2 double
read-only
fontWordSpacingButton double
read-only
fontWordSpacingCaption double
read-only
fontWordSpacingHeadline1 double
read-only
fontWordSpacingHeadline2 double
read-only
fontWordSpacingHeadline3 double
read-only
fontWordSpacingHeadline4 double
read-only
fontWordSpacingHeadline5 double
read-only
fontWordSpacingHeadline6 double
read-only
fontWordSpacingOverline double
read-only
fontWordSpacingSectionTitle double
read-only
fontWordSpacingSubtitle1 double
read-only
fontWordSpacingSubtitle2 double
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited