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
李卓原
2019-01-09 17:55:28 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f1546d4c10cf097042a7a6ce906985fd80f82d13
f1546d4c
1 parent
013e862a
修复字体会随系统变化的bug
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
CHANGELOG.md
lib/flutter_screenutil.dart
pubspec.yaml
CHANGELOG.md
View file @
f1546d4
...
...
@@ -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
...
...
lib/flutter_screenutil.dart
View file @
f1546d4
...
...
@@ -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
;
}
...
...
pubspec.yaml
View file @
f1546d4
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
...
...
Please
register
or
login
to post a comment