copyUpdateScaledTextSize method
Implementation
HubbleTypography copyUpdateScaledTextSize(double scale) {
return HubbleTypography(
h1: h1.copyWith(fontSize: (h1.fontSize! * scale)),
h2: h2.copyWith(fontSize: (h2.fontSize! * scale)),
h3: h3.copyWith(fontSize: (h3.fontSize! * scale)),
h4: h4.copyWith(fontSize: (h4.fontSize! * scale)),
h5: h5.copyWith(fontSize: (h5.fontSize! * scale)),
subtitle1: subtitle1.copyWith(fontSize: (subtitle1.fontSize! * scale)),
subtitle2: subtitle2.copyWith(fontSize: (subtitle2.fontSize! * scale)),
subtitle3: subtitle3.copyWith(fontSize: (subtitle3.fontSize! * scale)),
body1: body1.copyWith(fontSize: (body1.fontSize! * scale)),
body2: body2.copyWith(fontSize: (body2.fontSize! * scale)),
body3: body3.copyWith(fontSize: (body3.fontSize! * scale)),
body4: body4.copyWith(fontSize: (body4.fontSize! * scale)),
body5: body5.copyWith(fontSize: (body5.fontSize! * scale)),
label1: label1.copyWith(fontSize: (label1.fontSize! * scale)),
label2: label2.copyWith(fontSize: (label2.fontSize! * scale)),
label3: label3.copyWith(fontSize: (label3.fontSize! * scale)),
navigation: navigation.copyWith(fontSize: (navigation.fontSize! * scale)),
buttonSmall:
buttonSmall.copyWith(fontSize: (buttonSmall.fontSize! * scale)),
buttonMedium:
buttonMedium.copyWith(fontSize: (buttonMedium.fontSize! * scale)),
buttonLarge:
buttonLarge.copyWith(fontSize: (buttonLarge.fontSize! * scale)),
);
}