diff --git a/lib/flutter_screenutil.dart b/lib/flutter_screenutil.dart index 073bafe375bb7729b1e3db02221ce38ca0919f58..d0ea2fc882df7d2fa9061f2fd2474362e66a207c 100644 --- a/lib/flutter_screenutil.dart +++ b/lib/flutter_screenutil.dart @@ -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;