Skip to content

Commit

Permalink
Update flutter_screenutil.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
lizhuoyuan authored Mar 22, 2019
1 parent 7a71725 commit 71ffb80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/flutter_screenutil.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ class ScreenUtil {

///字体大小适配方法
///@param fontSize 传入设计稿上字体的px ,
///@param allowFontScaling 控制字体是否要根据系统的“字体大小”辅助选项来进行缩放。默认值为true
///@param allowFontScaling Specifies whether fonts should scale to respect Text Size accessibility settings. The default is true.
///@param allowFontScaling 控制字体是否要根据系统的“字体大小”辅助选项来进行缩放。默认值为false
///@param allowFontScaling Specifies whether fonts should scale to respect Text Size accessibility settings. The default is false.
setSp(int fontSize) => allowFontScaling
? setWidth(fontSize)
: setWidth(fontSize) / _textScaleFactor;
Expand Down

0 comments on commit 71ffb80

Please sign in to comment.