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