Skip to content

Commit e7b4307

Browse files
committed
format code
1 parent 8897409 commit e7b4307

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

lib/screenutil.dart

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,12 @@ class ScreenUtil {
114114
///Font size adaptation method
115115
///@param [fontSize] The size of the font on the UI design, in px.
116116
///@param [allowFontScaling]
117-
num setSp(num fontSize, {bool allowFontScalingSelf}) => allowFontScalingSelf == null
118-
? (allowFontScaling ? (fontSize * scaleText) : ((fontSize * scaleText) / _textScaleFactor))
119-
: (allowFontScalingSelf
120-
? (fontSize * scaleText)
121-
: ((fontSize * scaleText) / _textScaleFactor));
117+
num setSp(num fontSize, {bool allowFontScalingSelf}) =>
118+
allowFontScalingSelf == null
119+
? (allowFontScaling
120+
? (fontSize * scaleText)
121+
: ((fontSize * scaleText) / _textScaleFactor))
122+
: (allowFontScalingSelf
123+
? (fontSize * scaleText)
124+
: ((fontSize * scaleText) / _textScaleFactor));
122125
}

0 commit comments

Comments
 (0)