File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -116,9 +116,12 @@ class ScreenUtil {
116116 ///Font size adaptation method
117117 ///- [fontSize] The size of the font on the UI design, in px.
118118 ///- [allowFontScaling]
119- double setSp (num fontSize, {bool allowFontScalingSelf}) => allowFontScalingSelf == null
120- ? (allowFontScaling ? (fontSize * scaleText) : ((fontSize * scaleText) / _textScaleFactor))
121- : (allowFontScalingSelf
122- ? (fontSize * scaleText)
123- : ((fontSize * scaleText) / _textScaleFactor));
119+ double setSp (num fontSize, {bool allowFontScalingSelf}) =>
120+ allowFontScalingSelf == null
121+ ? (allowFontScaling
122+ ? (fontSize * scaleText)
123+ : (fontSize * scaleText / _textScaleFactor))
124+ : (allowFontScalingSelf
125+ ? (fontSize * scaleText)
126+ : (fontSize * scaleText / _textScaleFactor));
124127}
You can’t perform that action at this time.
0 commit comments