baseStyle method
TextStyle
baseStyle(
- double fontSize,
- double lineHeight,
- FontWeight fontWeight, {
- double letterSpacing = 0,
Implementation
TextStyle baseStyle(
double fontSize,
double lineHeight,
FontWeight fontWeight, {
double letterSpacing = 0,
}) {
final textScaler = MediaQuery.textScalerOf(context);
return TextStyle(
// fontFamily: 'Montserrat',
fontSize: textScaler.scale(fontSize),
height: lineHeight / fontSize,
fontWeight: fontWeight,
letterSpacing: textScaler.scale(letterSpacing.abs()),
);
}