Showing
6 changed files
with
10 additions
and
5 deletions
| 1 | -# Generated by pub on 2019-02-21 15:24:09.886695. | 1 | +# Generated by pub on 2019-02-21 16:04:26.823126. |
| 2 | async:file:///D:/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.0.8/lib/ | 2 | async:file:///D:/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.0.8/lib/ |
| 3 | boolean_selector:file:///D:/flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-1.0.4/lib/ | 3 | boolean_selector:file:///D:/flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-1.0.4/lib/ |
| 4 | charcode:file:///D:/flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.1.2/lib/ | 4 | charcode:file:///D:/flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.1.2/lib/ |
| @@ -32,6 +32,6 @@ setSp(int fontSize, [allowFontScaling = false]) => allowFontScaling | @@ -32,6 +32,6 @@ setSp(int fontSize, [allowFontScaling = false]) => allowFontScaling | ||
| 32 | 32 | ||
| 33 | ## [0.4.4] - Fix bugs that default fonts change with the system | 33 | ## [0.4.4] - Fix bugs that default fonts change with the system |
| 34 | 34 | ||
| 35 | -## [0.5.0] - Fix the wrong way of using | 35 | +## [0.5.1] - Fix the wrong way of using |
| 36 | 36 | ||
| 37 | -please use `ScreenUtil.getInstance()` instead of `ScreenUtil()` , for example: ScreenUtil.getInstance().setHeight(25) instead of `ScreenUtil().setHeight(25)` | ||
| 37 | +It is recommended to use `ScreenUtil.getInstance()` instead of `ScreenUtil()` , for example: `ScreenUtil.getInstance().setHeight(25)` instead of `ScreenUtil().setHeight(25)` |
| @@ -66,6 +66,9 @@ Adapted to screen width: `ScreenUtil.getInstance().setWidth(540)`, | @@ -66,6 +66,9 @@ Adapted to screen width: `ScreenUtil.getInstance().setWidth(540)`, | ||
| 66 | 66 | ||
| 67 | Adapted to screen height: `ScreenUtil.getInstance().setHeight(200)`, | 67 | Adapted to screen height: `ScreenUtil.getInstance().setHeight(200)`, |
| 68 | 68 | ||
| 69 | +You can also use `ScreenUtil()` instead of `ScreenUtil.getInstance()`, | ||
| 70 | +for example:`ScreenUtil().setHeight(200)` | ||
| 71 | + | ||
| 69 | **Note** | 72 | **Note** |
| 70 | 73 | ||
| 71 | Height is also adapted according to setWidth to ensure no deformation (when you want a square) | 74 | Height is also adapted according to setWidth to ensure no deformation (when you want a square) |
| @@ -70,6 +70,8 @@ ScreenUtil.instance = ScreenUtil(width: 750, height: 1334, allowFontScaling: tru | @@ -70,6 +70,8 @@ ScreenUtil.instance = ScreenUtil(width: 750, height: 1334, allowFontScaling: tru | ||
| 70 | 70 | ||
| 71 | 根据屏幕高度适配 `height: ScreenUtil.getInstance().setHeight(200)`, | 71 | 根据屏幕高度适配 `height: ScreenUtil.getInstance().setHeight(200)`, |
| 72 | 72 | ||
| 73 | +也可以使用 `ScreenUtil()` 替代 `ScreenUtil.getInstance()`, | ||
| 74 | +例如:`ScreenUtil().setHeight(200)` | ||
| 73 | 75 | ||
| 74 | **注意** | 76 | **注意** |
| 75 | 77 |
| @@ -47,7 +47,7 @@ packages: | @@ -47,7 +47,7 @@ packages: | ||
| 47 | path: ".." | 47 | path: ".." |
| 48 | relative: true | 48 | relative: true |
| 49 | source: path | 49 | source: path |
| 50 | - version: "0.5.0" | 50 | + version: "0.5.1" |
| 51 | flutter_test: | 51 | flutter_test: |
| 52 | dependency: "direct dev" | 52 | dependency: "direct dev" |
| 53 | description: flutter | 53 | description: flutter |
| 1 | name: flutter_screenutil | 1 | name: flutter_screenutil |
| 2 | description: A flutter plugin for adapting screen and font size.Guaranteed to look good on different models | 2 | description: A flutter plugin for adapting screen and font size.Guaranteed to look good on different models |
| 3 | -version: 0.5.0 | 3 | +version: 0.5.1 |
| 4 | author: LiZhuoyuan <zhuoyuan93@gmail.com> | 4 | author: LiZhuoyuan <zhuoyuan93@gmail.com> |
| 5 | homepage: https://github.com/OpenFlutter/flutter_ScreenUtil | 5 | homepage: https://github.com/OpenFlutter/flutter_ScreenUtil |
| 6 | 6 |
-
Please register or login to post a comment