bodySmall static method
TextStyle
bodySmall(
- BuildContext context, {
- Color? color,
- double? letterSpacing,
- FontWeight? fontWeight,
- FontStyle? fontStyle,
- TextDecoration? decoration,
TextStyle for bodySmall.
Implementation
static TextStyle bodySmall(
BuildContext context, {
Color? color,
double? letterSpacing,
FontWeight? fontWeight,
FontStyle? fontStyle,
TextDecoration? decoration,
}) =>
(Theme.of(context).textTheme.bodySmall ?? const TextStyle()).copyWith(
fontSize: MediaQuery.of(context).size.height * .02,
color: color,
letterSpacing: letterSpacing,
fontWeight: fontWeight,
fontStyle: fontStyle,
decoration: decoration,
);