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-14 11:48:21 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f10196f3503a47d55e79421c85746ef71cde7324
f10196f3
1 parent
3181979a
文档优化
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
README.md
README_CN.md
README.md
View file @
f10196f
...
...
@@ -90,14 +90,14 @@ Container(
#### Adapter font:
```
ScreenUtil().setSp(28) //Incoming font size,the unit is pixel, fonts will not scale to respect Text Size accessibility settings
ScreenUtil(
).setSp(28,true
) //Incoming font size,the unit is pixel,fonts will scale to respect Text Size accessibility settings
ScreenUtil(
allowFontScaling: true).setSp(28
) //Incoming font size,the unit is pixel,fonts will scale to respect Text Size accessibility settings
for example:
Text(
'My font size is 28px and will not change with the system.',
style: TextStyle(
color: Colors.black,
fontSize:
ScreenUtil(
).setSp(28, false)
fontSize:
ScreenUtil(allowFontScaling: true
).setSp(28, false)
)
),
...
...
@@ -213,7 +213,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
'My font size is 14px on the design draft and will change with the system.',
style: TextStyle(
color: Colors.black,
fontSize: ScreenUtil(
).setSp(14,true
),
fontSize: ScreenUtil(
allowFontScaling: true).setSp(24
),
)),
],
)
...
...
README_CN.md
View file @
f10196f
...
...
@@ -102,7 +102,7 @@ for example:
'My font size is 28px and will not change with the system.',
style: TextStyle(
color: Colors.black,
fontSize: ScreenUtil().setSp(28, false)
fontSize: ScreenUtil(
allowFontScaling: true
).setSp(28, false)
)
),
...
...
Please
register
or
login
to post a comment