setSp method
字体大小适配方法
fontSize
UI设计上字体的大小,单位px. Font size adaptation methodfontSize
The size of the font on the UI design, in px.- allowFontScaling
Implementation
double setSp(num fontSize, {bool? allowFontScalingSelf}) => allowFontScalingSelf == null ? (allowFontScaling ? (fontSize * scaleText) : ((fontSize * scaleText) / _textScaleFactor)) : (allowFontScalingSelf ? (fontSize * scaleText) : ((fontSize * scaleText) / _textScaleFactor));