提交 95303564 编写于 作者: 李卓原

优化文档描述

上级 62e454ce
# Generated by pub on 2019-02-21 15:24:09.886695.
# Generated by pub on 2019-02-21 16:04:26.823126.
async:file:///D:/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.0.8/lib/
boolean_selector:file:///D:/flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-1.0.4/lib/
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
## [0.4.4] - Fix bugs that default fonts change with the system
## [0.5.0] - Fix the wrong way of using
## [0.5.1] - Fix the wrong way of using
please use `ScreenUtil.getInstance()` instead of `ScreenUtil()` , for example: ScreenUtil.getInstance().setHeight(25) instead of `ScreenUtil().setHeight(25)`
\ No newline at end of file
It is recommended to use `ScreenUtil.getInstance()` instead of `ScreenUtil()` , for example: `ScreenUtil.getInstance().setHeight(25)` instead of `ScreenUtil().setHeight(25)`
\ No newline at end of file
......@@ -66,6 +66,9 @@ Adapted to screen width: `ScreenUtil.getInstance().setWidth(540)`,
Adapted to screen height: `ScreenUtil.getInstance().setHeight(200)`,
You can also use `ScreenUtil()` instead of `ScreenUtil.getInstance()`,
for example:`ScreenUtil().setHeight(200)`
**Note**
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
根据屏幕高度适配 `height: ScreenUtil.getInstance().setHeight(200)`,
也可以使用 `ScreenUtil()` 替代 `ScreenUtil.getInstance()`,
例如:`ScreenUtil().setHeight(200)`
**注意**
......
......@@ -47,7 +47,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.5.0"
version: "0.5.1"
flutter_test:
dependency: "direct dev"
description: flutter
......
name: flutter_screenutil
description: A flutter plugin for adapting screen and font size.Guaranteed to look good on different models
version: 0.5.0
version: 0.5.1
author: LiZhuoyuan <zhuoyuan93@gmail.com>
homepage: https://github.com/OpenFlutter/flutter_ScreenUtil
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册