fitFont method
Implementation
Font fitFont() {
switch (size) {
case TDLoadingSize.large:
return TDTheme.of().fontBodyLarge ?? Font(size: 16, lineHeight: 24);
case TDLoadingSize.medium:
return TDTheme.of().fontBodyMedium ?? Font(size: 14, lineHeight: 22);
case TDLoadingSize.small:
return TDTheme.of().fontBodySmall ?? Font(size: 12, lineHeight: 20);
}
}