getFontSize function
根据文本等级返回字体大小
Implementation
double getFontSize(AntdTitleLevel? level) {
double fontSize = iFontSize;
if (level == null) return fontSize;
switch (level) {
case AntdTitleLevel.h1:
fontSize = iFontSizeH1;
break;
case AntdTitleLevel.h2:
fontSize = iFontSizeH2;
break;
case AntdTitleLevel.h3:
fontSize = iFontSizeH3;
break;
case AntdTitleLevel.h4:
fontSize = iFontSizeH4;
break;
case AntdTitleLevel.h5:
fontSize = iFontSizeH5;
break;
}
return fontSize;
}