getTextSize static method
Return double textSize of a text and default textSize is UFUTextSize.heading4
Implementation
static double getTextSize(UFUTextSize textSize) {
switch (textSize) {
case UFUTextSize.size30:
return 30;
case UFUTextSize.size28:
return 28;
case UFUTextSize.size26:
return 26;
case UFUTextSize.size24:
return 24;
case UFUTextSize.size22:
return 22;
case UFUTextSize.heading1:
return 20;
case UFUTextSize.heading2:
return 18;
case UFUTextSize.heading3:
return 16;
case UFUTextSize.heading4:
return 14;
case UFUTextSize.heading5:
return 12;
case UFUTextSize.heading6:
return 11;
// default:
// return 14;
}
}