ChatUIKitFont constructor
ChatUIKitFont({
- TextStyle? headlineLarge,
- TextStyle? headlineMedium,
- TextStyle? headlineSmall,
- TextStyle? titleLarge,
- TextStyle? titleMedium,
- TextStyle? titleSmall,
- TextStyle? labelLarge,
- TextStyle? labelMedium,
- TextStyle? labelSmall,
- TextStyle? labelExtraSmall,
- TextStyle? bodyLarge,
- TextStyle? bodyMedium,
- TextStyle? bodySmall,
- TextStyle? bodyExtraSmall,
- ChatUIKitFontSize fontSize = ChatUIKitFontSize.normal,
Implementation
ChatUIKitFont({
TextStyle? headlineLarge,
TextStyle? headlineMedium,
TextStyle? headlineSmall,
TextStyle? titleLarge,
TextStyle? titleMedium,
TextStyle? titleSmall,
TextStyle? labelLarge,
TextStyle? labelMedium,
TextStyle? labelSmall,
TextStyle? labelExtraSmall,
TextStyle? bodyLarge,
TextStyle? bodyMedium,
TextStyle? bodySmall,
TextStyle? bodyExtraSmall,
this.fontSize = ChatUIKitFontSize.normal,
}) : headlineLarge = headlineLarge ??
const TextStyle(fontSize: 20, fontWeight: FontWeight.w600),
headlineMedium = headlineMedium ??
const TextStyle(fontSize: 18, fontWeight: FontWeight.w600),
headlineSmall = headlineSmall ??
const TextStyle(fontSize: 16, fontWeight: FontWeight.w600),
titleLarge = titleLarge ??
const TextStyle(fontSize: 18, fontWeight: FontWeight.w500),
titleMedium = titleMedium ??
const TextStyle(fontSize: 16, fontWeight: FontWeight.w500),
titleSmall = titleSmall ??
const TextStyle(fontSize: 14, fontWeight: FontWeight.w500),
labelLarge = labelLarge ??
const TextStyle(fontSize: 16, fontWeight: FontWeight.w500),
labelMedium = labelMedium ??
const TextStyle(fontSize: 14, fontWeight: FontWeight.w500),
labelSmall = labelSmall ??
const TextStyle(fontSize: 12, fontWeight: FontWeight.w500),
labelExtraSmall = labelExtraSmall ??
const TextStyle(fontSize: 11, fontWeight: FontWeight.w400),
bodyLarge = bodyLarge ??
const TextStyle(fontSize: 16, fontWeight: FontWeight.w400),
bodyMedium = bodyMedium ??
const TextStyle(fontSize: 14, fontWeight: FontWeight.w400),
bodySmall = bodySmall ??
const TextStyle(fontSize: 12, fontWeight: FontWeight.w400),
bodyExtraSmall = bodyExtraSmall ??
const TextStyle(fontSize: 11, fontWeight: FontWeight.w400);