Skip to content

Instantly share code, notes, and snippets.

@ThinkDigitalSoftware
Created March 12, 2020 19:27
Show Gist options
  • Save ThinkDigitalSoftware/de4a9da8ee4f15d0e34bed5a74e8526a to your computer and use it in GitHub Desktop.
Save ThinkDigitalSoftware/de4a9da8ee4f15d0e34bed5a74e8526a to your computer and use it in GitHub Desktop.
Flutter 1.13.8 to 1.14+ conversions

The names of the TextTheme properties match this table from the /// Material Design spec /// with two exceptions: the styles called H1-H6 in the spec are /// headline1-headline6 in the API, and body1,body2 are called /// bodyText1 and bodyText2.

NAME SIZE WEIGHT SPACING 2018 NAME /// display4 112.0 thin 0.0 headline1 /// display3 56.0 normal 0.0 headline2 /// display2 45.0 normal 0.0 headline3 /// display1 34.0 normal 0.0 headline4 /// headline 24.0 normal 0.0 headline5 /// title 20.0 medium 0.0 headline6 /// subhead 16.0 normal 0.0 subtitle1 /// body2 14.0 medium 0.0 body1 (bodyText1) /// body1 14.0 normal 0.0 body2 (bodyText2) /// caption 12.0 normal 0.0 caption /// button 14.0 medium 0.0 button /// subtitle 14.0 medium 0.0 subtitle2 /// overline 10.0 normal 0.0 overline

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment