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
李卓原
2020-12-29 11:04:56 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
66262a0bd50bf9afd6c7feaacacd87a7c557474a
66262a0b
1 parent
11a2638c
merge 4.0.2+2
fix #186
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
CHANGELOG.md
lib/screenutil.dart
pubspec.yaml
CHANGELOG.md
View file @
66262a0
# 5.0.0-nullsafety.1
-
merge 4.0.2+2 #186
# 5.0.0-nullsafety.1
-
merge 4.0.1 ,4.0.2 #183
...
...
lib/screenutil.dart
View file @
66262a0
...
...
@@ -114,9 +114,9 @@ class ScreenUtil {
double
setSp
(
num
fontSize
,
{
bool
?
allowFontScalingSelf
})
=>
allowFontScalingSelf
==
null
?
(
allowFontScaling
?
(
fontSize
*
scaleText
)
:
(
fontSize
*
scaleText
/
_textScaleFactor
))
?
(
fontSize
*
scaleText
)
*
_textScaleFactor
:
(
fontSize
*
scaleText
))
:
(
allowFontScalingSelf
?
(
fontSize
*
scaleText
)
:
(
fontSize
*
scaleText
/
_textScaleFactor
));
?
(
fontSize
*
scaleText
)
*
_textScaleFactor
:
(
fontSize
*
scaleText
));
}
...
...
pubspec.yaml
View file @
66262a0
name
:
flutter_screenutil
description
:
A flutter plugin for adapting screen and font size.Guaranteed to look good on different models
version
:
5.0.0-nullsafety.
1
version
:
5.0.0-nullsafety.
2
homepage
:
https://github.com/OpenFlutter/flutter_screenutil
environment
:
...
...
Please
register
or
login
to post a comment