Showing
3 changed files
with
7 additions
and
5 deletions
| @@ -114,9 +114,9 @@ class ScreenUtil { | @@ -114,9 +114,9 @@ class ScreenUtil { | ||
| 114 | double setSp(num fontSize, {bool? allowFontScalingSelf}) => | 114 | double setSp(num fontSize, {bool? allowFontScalingSelf}) => |
| 115 | allowFontScalingSelf == null | 115 | allowFontScalingSelf == null |
| 116 | ? (allowFontScaling | 116 | ? (allowFontScaling |
| 117 | - ? (fontSize * scaleText) | ||
| 118 | - : (fontSize * scaleText / _textScaleFactor)) | 117 | + ? (fontSize * scaleText) * _textScaleFactor |
| 118 | + : (fontSize * scaleText)) | ||
| 119 | : (allowFontScalingSelf | 119 | : (allowFontScalingSelf |
| 120 | - ? (fontSize * scaleText) | ||
| 121 | - : (fontSize * scaleText / _textScaleFactor)); | 120 | + ? (fontSize * scaleText) * _textScaleFactor |
| 121 | + : (fontSize * scaleText)); | ||
| 122 | } | 122 | } |
| 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: 5.0.0-nullsafety.1 | 3 | +version: 5.0.0-nullsafety.2 |
| 4 | homepage: https://github.com/OpenFlutter/flutter_screenutil | 4 | homepage: https://github.com/OpenFlutter/flutter_screenutil |
| 5 | 5 | ||
| 6 | environment: | 6 | environment: |
-
Please register or login to post a comment