Skip to content

Commit 0c8b90a

Browse files
author
李卓原
committed
使用dartfmt格式化代码
1 parent 8b6a92a commit 0c8b90a

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
@@ -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
}

0 commit comments

Comments
 (0)