FontResources class

Base class for fonts Provides basic Material Design textStyles

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

FontResources({@required ColorResources colors, @required DimensionResources dimensions, TextStyle baseTextStyle, String fontFamily})

Properties

body1 TextStyle
read-only
body2 TextStyle
read-only
button TextStyle
read-only
caption TextStyle
read-only
colors ColorResources
read / write
dimensions DimensionResources
read / write
fontFamily String
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
headline1 TextStyle
read-only
headline2 TextStyle
read-only
headline3 TextStyle
read-only
headline4 TextStyle
read-only
headline5 TextStyle
read-only
headline6 TextStyle
read-only
overline TextStyle
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
subtitle1 TextStyle
read-only
subtitle2 TextStyle
read-only

Methods

clearCache() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
setColors(ColorResources colorResources) → void
setDimensions(DimensionResources dimensionResources) → void
toString() String
A string representation of this object. [...]
inherited

Operators

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