displayLarge static method
TextStyle
displayLarge({
- required BuildContext context,
- String? fontFamily,
- Color? color,
- FontWeight? weight,
- double? fontSize,
- double? height,
- double? letterSpacing,
Default type scale uses the active TextTheme of context.
Each method returns a TextStyle pre-wired to the theme with sensible
Material defaults (weight, letter-spacing) that you can then .copyWith.
Implementation
static TextStyle displayLarge({
required BuildContext context,
String? fontFamily,
Color? color,
FontWeight? weight,
double? fontSize,
double? height,
double? letterSpacing,
}) =>
_resolve(
context: context,
base: Theme.of(context).textTheme.displayLarge,
fontFamily: fontFamily,
color: color,
weight: weight ?? AppFontWeight.bold,
fontSize: fontSize,
height: height,
letterSpacing: letterSpacing,
);