Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
flutter_screenutil
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
李卓原
2018-11-08 15:43:54 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4ebea90a1a1f34bc4feb0fa80e5aef9666448de8
4ebea90a
1 parent
d35964b6
紧急修复文字适配问题
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
lib/flutter_screenutil.dart
lib/flutter_screenutil.dart
View file @
4ebea90
...
...
@@ -82,6 +82,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
=
true
])
=>
allowFontScaling
?
setWidth
(
fontSize
)
*
_pixelRatio
*
_textScaleFactor
:
setWidth
(
fontSize
)
*
_pixelRatio
;
?
setWidth
(
fontSize
)
*
_textScaleFactor
:
setWidth
(
fontSize
);
}
...
...
Please
register
or
login
to post a comment