build method
builder
Implementation
@override
dynamic build(BuildContext context) {
if (Design.isMaterialYaru() || Design.isCupertino()) {
Typography(
platform: platform,
black: black,
white: white,
englishLike: englishLike,
dense: dense,
tall: tall,
);
} else if (Design.isFluent()) {
return fluent.Typography.raw(
display: displayMedium,
titleLarge: titleLarge,
title: titleMedium,
subtitle: titleSmall,
bodyLarge: bodyLarge,
bodyStrong: bodyStrong,
body: bodyMedium,
caption: labelMedium,
);
} else if (Design.isMacOS()) {
return MacosTypography(
color: color,
largeTitle: displayLarge,
title1: displayLarge,
title2: displayMedium,
title3: displaySmall,
headline: headlineLarge,
subheadline: headlineMedium,
callout: headlineSmall,
body: bodyLarge,
footnote: bodyMedium,
caption1: bodySmall,
caption2: labelLarge,
);
}
}