Skip to content

Commit 66262a0

Browse files
author
李卓原
committed
merge 4.0.2+2
fix #186
1 parent 11a2638 commit 66262a0

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# 5.0.0-nullsafety.1
2+
- merge 4.0.2+2 #186
13

24
# 5.0.0-nullsafety.1
35
- merge 4.0.1 ,4.0.2 #183

lib/screenutil.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ class ScreenUtil {
114114
double setSp(num fontSize, {bool? allowFontScalingSelf}) =>
115115
allowFontScalingSelf == null
116116
? (allowFontScaling
117-
? (fontSize * scaleText)
118-
: (fontSize * scaleText / _textScaleFactor))
117+
? (fontSize * scaleText) * _textScaleFactor
118+
: (fontSize * scaleText))
119119
: (allowFontScalingSelf
120-
? (fontSize * scaleText)
121-
: (fontSize * scaleText / _textScaleFactor));
120+
? (fontSize * scaleText) * _textScaleFactor
121+
: (fontSize * scaleText));
122122
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_screenutil
22
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
44
homepage: https://github.com/OpenFlutter/flutter_screenutil
55

66
environment:

0 commit comments

Comments
 (0)