李卓原

修复字体会随系统变化的bug

... ... @@ -29,3 +29,5 @@ Height is enlarged relative to the design draft => The ratio of height width to
setSp(int fontSize, [allowFontScaling = false]) => allowFontScaling
? setWidth(fontSize) * _textScaleFactor
: setWidth(fontSize);
## [0.4.4] - Fix bugs that default fonts change with the system
... ...
... ... @@ -88,6 +88,6 @@ class ScreenUtil {
///@param allowFontScaling 控制字体是否要根据系统的“字体大小”辅助选项来进行缩放。默认值为true。
///@param allowFontScaling Specifies whether fonts should scale to respect Text Size accessibility settings. The default is true.
setSp(int fontSize, [allowFontScaling = false]) => allowFontScaling
? setWidth(fontSize) * _textScaleFactor
: setWidth(fontSize);
? setWidth(fontSize)
: setWidth(fontSize) / _textScaleFactor;
}
... ...
name: flutter_screenutil
description: A flutter plugin for adapting screen and font size.Guaranteed to look good on different models
version: 0.4.3
version: 0.4.4
author: LiZhuoyuan <zhuoyuan93@gmail.com>
homepage: https://github.com/OpenFlutter/flutter_ScreenUtil
... ...