getResponsiveTextStyle static method
TextStyle
getResponsiveTextStyle({
- required BuildContext context,
- double? baseSize,
- double? minSize,
- double? maxSize,
- bool isTitle = false,
- bool isSubtitle = false,
- bool isBody = false,
- bool isCaption = false,
- Color? color,
- FontWeight? fontWeight,
- List<
Shadow> ? shadows, - TextDecoration? decoration,
- String? fontFamily,
Get responsive text style for different text types
Implementation
static TextStyle getResponsiveTextStyle({
required BuildContext context,
double? baseSize,
double? minSize,
double? maxSize,
bool isTitle = false,
bool isSubtitle = false,
bool isBody = false,
bool isCaption = false,
Color? color,
FontWeight? fontWeight,
List<Shadow>? shadows,
TextDecoration? decoration,
String? fontFamily,
}) {
return TextStyle(
fontSize: getResponsiveFontSize(
context: context,
baseSize: baseSize,
minSize: minSize,
maxSize: maxSize,
isTitle: isTitle,
isSubtitle: isSubtitle,
isBody: isBody,
isCaption: isCaption,
),
color: color,
fontWeight: fontWeight,
shadows: shadows,
decoration: decoration,
fontFamily: fontFamily,
);
}