Created
February 12, 2021 00:25
-
-
Save denisviana/71d056a009ba9a7b532b496d9db076c1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AppTextTheme { | |
/// https://material.io/design/typography/the-type-system.html#type-scale - Helps to create textTheme | |
static TextTheme get textTheme => textThemeSourceSansPro; | |
static TextTheme textThemeSourceSansPro = TextTheme( | |
headline1: TextStyle( | |
fontFamily: 'Metropolis', | |
fontSize: 96, | |
fontWeight: FontWeight.w300, | |
letterSpacing: -1.5, | |
), | |
headline2: TextStyle( | |
fontFamily: 'Metropolis', | |
fontSize: 60, | |
fontWeight: FontWeight.w300, | |
letterSpacing: -0.5, | |
), | |
headline3: TextStyle( | |
fontFamily: 'Metropolis', | |
fontSize: 48, | |
fontWeight: FontWeight.w400, | |
), | |
headline4: TextStyle( | |
fontFamily: 'Metropolis', | |
fontSize: 34, | |
fontWeight: FontWeight.w400, | |
letterSpacing: 0.25, | |
), | |
headline5: TextStyle( | |
fontFamily: 'Metropolis', | |
fontSize: 24, | |
fontWeight: FontWeight.bold, | |
), | |
headline6: TextStyle( | |
fontFamily: 'Metropolis', | |
fontSize: 20, | |
fontWeight: FontWeight.bold, | |
), | |
subtitle1: TextStyle( | |
fontFamily: 'Metropolis', | |
fontSize: 16, | |
fontWeight: FontWeight.w400, | |
), | |
subtitle2: TextStyle( | |
fontFamily: 'Metropolis', | |
fontSize: 14, | |
fontWeight: FontWeight.w500, | |
letterSpacing: 0.1, | |
), | |
bodyText2: TextStyle( | |
fontFamily: 'Metropolis', | |
fontSize: 16, | |
), | |
button: TextStyle( | |
fontFamily: 'Metropolis', | |
fontSize: 14, | |
fontWeight: FontWeight.bold, | |
letterSpacing: 1.25, | |
), | |
caption: TextStyle( | |
fontFamily: 'Metropolis', | |
fontSize: 12, | |
fontWeight: FontWeight.w400, | |
letterSpacing: 0.4, | |
), | |
overline: TextStyle( | |
fontFamily: 'Metropolis', | |
fontSize: 10, | |
fontWeight: FontWeight.w400, | |
letterSpacing: 1.5, | |
), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment