getDefaultTextStyle method

TextStyle getDefaultTextStyle()

this method will be call when textStyle is not defined defaultFontSize Optional, defines the font size to use when the a Style is not define, default value: 18 defaultTextColor Optional, defines the main color to get use when the a Style is not define, default value: Colors.black

Implementation

TextStyle getDefaultTextStyle() {
  return TextStyle(
    color: defaultTextColor,
    fontWeight: FontWeight.bold,
    fontSize: defaultFontSize * scaleFactor * textScaleFactor,
  );
}