Skip to content

Commit

Permalink
文档优化
Browse files Browse the repository at this point in the history
  • Loading branch information
lizhuoyuan committed Jan 14, 2019
1 parent 3181979 commit f10196f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
),
Expand Down Expand Up @@ -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),
)),
],
)
Expand Down
2 changes: 1 addition & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
),
Expand Down

0 comments on commit f10196f

Please sign in to comment.