Implementation
Fonts({
required TextStyle style,
required double giant,
required double largest,
required double larger,
required double large,
required double big,
required double medium,
required double normal,
required double small,
required double smaller,
required double smallest,
required FontWeight bold,
required FontWeight regular,
required Color currencyPrimary,
required Color onBackground,
required Color onPrimary,
required Color secondary,
required Color primary,
required Color primaryHighlightLightest,
required Color danger,
required Color onDonatePrimary,
required Color onDonateSecondary,
required Color secondaryHighlightDarkest,
required Color secondaryHighlight,
required Color secondaryBackgroundLight,
required Color onPrimaryOpacity50,
}) : giant = Giant(
style: style.copyWith(fontSize: giant),
bold: bold,
regular: regular,
currencyPrimary: currencyPrimary,
onBackground: onBackground,
),
largest = Largest(
style: style.copyWith(fontSize: largest),
bold: bold,
regular: regular,
onBackground: onBackground,
onPrimary: onPrimary,
currencyPrimary: currencyPrimary,
secondary: secondary,
),
larger = Larger(
style: style.copyWith(fontSize: larger),
regular: regular,
onBackground: onBackground,
secondary: secondary,
),
large = Large(
style: style.copyWith(fontSize: large),
regular: regular,
onBackground: onBackground,
secondary: secondary,
),
big = Big(
style: style.copyWith(fontSize: big),
regular: regular,
onBackground: onBackground,
onPrimary: onPrimary,
secondary: secondary,
primary: primary,
currencyPrimary: currencyPrimary,
),
medium = Medium(
style: style.copyWith(fontSize: medium),
regular: regular,
bold: bold,
onBackground: onBackground,
onPrimary: onPrimary,
primary: primary,
primaryHighlightLightest: primaryHighlightLightest,
secondary: secondary,
danger: danger,
onDonatePrimary: onDonatePrimary,
onDonateSecondary: onDonateSecondary,
currencyPrimary: currencyPrimary,
),
normal = Normal(
style: style.copyWith(fontSize: normal),
bold: bold,
regular: regular,
onBackground: onBackground,
onPrimary: onPrimary,
danger: danger,
primary: primary,
secondary: secondary,
secondaryHighlightDarkest: secondaryHighlightDarkest,
),
small = Small(
style: style.copyWith(fontSize: small),
regular: regular,
danger: danger,
onBackground: onBackground,
onPrimary: onPrimary,
primary: primary,
secondary: secondary,
secondaryHighlight: secondaryHighlight,
secondaryHighlightDarkest: secondaryHighlightDarkest,
currencyPrimary: currencyPrimary,
secondaryBackgroundLight: secondaryBackgroundLight,
),
smaller = Smaller(
style: style.copyWith(fontSize: smaller),
bold: bold,
regular: regular,
onPrimary: onPrimary,
secondary: secondary,
onBackground: onBackground,
primary: primary,
),
smallest = Smallest(
style: style.copyWith(fontSize: smallest),
regular: regular,
onBackground: onBackground,
onPrimary: onPrimary,
onPrimaryOpacity50: onPrimaryOpacity50,
secondary: secondary,
primary: primary,
);