baseStyle method

TextStyle baseStyle(
  1. double fontSize,
  2. double lineHeight,
  3. FontWeight fontWeight, {
  4. 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()),
  );
}