Skip to content

Commit

Permalink
Update README_CN.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lizhuoyuan authored Dec 17, 2018
1 parent 512cf1f commit f404dc8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
### 使用:

适配尺寸:
```

//传入设计稿的px尺寸:
根据款第适配 width: ScreenUtil().setWidth(540),
根据高度适配 height: ScreenUtil().setHeight(200),
Expand All @@ -55,12 +55,15 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
setHeight方法主要是在高度上进行适配, 在你想控制UI上一屏的高度与实际中显示一样时使用.

例如:

```
//长方形:
Container(
width: ScreenUtil().setWidth(375),
height: ScreenUtil().setHeight(200),
),
如果你想显示一个正方形:
//如果你想显示一个正方形:
Container(
width: ScreenUtil().setWidth(300),
height: ScreenUtil().setWidth(300),
Expand Down

0 comments on commit f404dc8

Please sign in to comment.