File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -116,9 +116,12 @@ class ScreenUtil {
116
116
///Font size adaptation method
117
117
///- [fontSize] The size of the font on the UI design, in px.
118
118
///- [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));
124
127
}
You can’t perform that action at this time.
0 commit comments