forked from OpenFlutter/flutter_screenutil
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b002b5c
commit 8e405a1
Showing
6 changed files
with
170 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
# Generated by pub on 2019-06-24 14:51:33.826233. | ||
async:file:///D:/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.1.0/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/ | ||
collection:file:///D:/flutter/.pub-cache/hosted/pub.dartlang.org/collection-1.14.11/lib/ | ||
# Generated by pub on 2019-08-23 16:15:58.801584. | ||
async:file:///D:/flutter/.pub-cache/hosted/pub.flutter-io.cn/async-2.2.0/lib/ | ||
boolean_selector:file:///D:/flutter/.pub-cache/hosted/pub.flutter-io.cn/boolean_selector-1.0.4/lib/ | ||
charcode:file:///D:/flutter/.pub-cache/hosted/pub.flutter-io.cn/charcode-1.1.2/lib/ | ||
collection:file:///D:/flutter/.pub-cache/hosted/pub.flutter-io.cn/collection-1.14.11/lib/ | ||
flutter:file:///D:/flutter/packages/flutter/lib/ | ||
flutter_test:file:///D:/flutter/packages/flutter_test/lib/ | ||
matcher:file:///D:/flutter/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.5/lib/ | ||
meta:file:///D:/flutter/.pub-cache/hosted/pub.dartlang.org/meta-1.1.6/lib/ | ||
path:file:///D:/flutter/.pub-cache/hosted/pub.dartlang.org/path-1.6.2/lib/ | ||
pedantic:file:///D:/flutter/.pub-cache/hosted/pub.dartlang.org/pedantic-1.5.0/lib/ | ||
quiver:file:///D:/flutter/.pub-cache/hosted/pub.dartlang.org/quiver-2.0.2/lib/ | ||
matcher:file:///D:/flutter/.pub-cache/hosted/pub.flutter-io.cn/matcher-0.12.5/lib/ | ||
meta:file:///D:/flutter/.pub-cache/hosted/pub.flutter-io.cn/meta-1.1.6/lib/ | ||
path:file:///D:/flutter/.pub-cache/hosted/pub.flutter-io.cn/path-1.6.2/lib/ | ||
pedantic:file:///D:/flutter/.pub-cache/hosted/pub.flutter-io.cn/pedantic-1.7.0/lib/ | ||
quiver:file:///D:/flutter/.pub-cache/hosted/pub.flutter-io.cn/quiver-2.0.3/lib/ | ||
sky_engine:file:///D:/flutter/bin/cache/pkg/sky_engine/lib/ | ||
source_span:file:///D:/flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.5.5/lib/ | ||
stack_trace:file:///D:/flutter/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.9.3/lib/ | ||
stream_channel:file:///D:/flutter/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.0.0/lib/ | ||
string_scanner:file:///D:/flutter/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.0.4/lib/ | ||
term_glyph:file:///D:/flutter/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.1.0/lib/ | ||
test_api:file:///D:/flutter/.pub-cache/hosted/pub.dartlang.org/test_api-0.2.4/lib/ | ||
typed_data:file:///D:/flutter/.pub-cache/hosted/pub.dartlang.org/typed_data-1.1.6/lib/ | ||
vector_math:file:///D:/flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.0.8/lib/ | ||
source_span:file:///D:/flutter/.pub-cache/hosted/pub.flutter-io.cn/source_span-1.5.5/lib/ | ||
stack_trace:file:///D:/flutter/.pub-cache/hosted/pub.flutter-io.cn/stack_trace-1.9.3/lib/ | ||
stream_channel:file:///D:/flutter/.pub-cache/hosted/pub.flutter-io.cn/stream_channel-2.0.0/lib/ | ||
string_scanner:file:///D:/flutter/.pub-cache/hosted/pub.flutter-io.cn/string_scanner-1.0.4/lib/ | ||
term_glyph:file:///D:/flutter/.pub-cache/hosted/pub.flutter-io.cn/term_glyph-1.1.0/lib/ | ||
test_api:file:///D:/flutter/.pub-cache/hosted/pub.flutter-io.cn/test_api-0.2.5/lib/ | ||
typed_data:file:///D:/flutter/.pub-cache/hosted/pub.flutter-io.cn/typed_data-1.1.6/lib/ | ||
vector_math:file:///D:/flutter/.pub-cache/hosted/pub.flutter-io.cn/vector_math-2.0.8/lib/ | ||
flutter_screenutil:lib/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,80 @@ | ||
## [0.0.1] - first version | ||
<!-- | ||
* @Author: zhuoyuan93@gmail.com | ||
* @Date: 2018-10-16 19:43:03 | ||
* @LastEditors: zhuoyuan93@gmail.com | ||
* @LastEditTime: 2019-08-23 16:26:24 | ||
* @Description: Update log | ||
--> | ||
|
||
## [0.2.2] - Fixed bug when releasing | ||
# 0.0.1 | ||
|
||
## [0.2.2] - Optimize documentation | ||
- first version | ||
|
||
## [0.3.0] - Add font size adaptation | ||
# 0.0.2 | ||
|
||
## [0.3.0] - Perfect documentation | ||
Width is enlarged relative to the design draft => The ratio of font and width to the size of the design | ||
Height is enlarged relative to the design draft => The ratio of height width to the size of the design | ||
- Fixed bug when releasing | ||
|
||
## [0.4.0] - Optimize font adaptation method | ||
# 0.2.2 | ||
|
||
## [0.4.1] - Fix font adaptation issues | ||
- Optimize documentation | ||
|
||
## [0.4.2] - add two Properties | ||
# 0.3.0 | ||
|
||
///Current device width dp <br/> | ||
///当前设备宽度 dp <br/> | ||
ScreenUtil.screenWidthDp | ||
- Add font size adaptation | ||
|
||
///Current device height dp <br/> | ||
///当前设备高度 dp <br/> | ||
ScreenUtil.screenHeightDp | ||
# 0.3.1 | ||
|
||
## [0.4.2] - Modify the font to change with the system zoom mode. The default value is false. | ||
- Perfect documentation | ||
- Width is enlarged relative to the design draft => The ratio of font and width to the size of the design | ||
- Height is enlarged relative to the design draft => The ratio of height width to the size of the design | ||
|
||
setSp(int fontSize, [allowFontScaling = false]) => allowFontScaling | ||
? setWidth(fontSize) * _textScaleFactor | ||
: setWidth(fontSize); | ||
|
||
## [0.4.4] - Fix bugs that default fonts change with the system | ||
# 0.4.0 | ||
|
||
## [0.5.1] - Fix the wrong way of using | ||
- Optimize font adaptation method | ||
|
||
It is recommended to use `ScreenUtil.getInstance()` instead of `ScreenUtil()` , for example: `ScreenUtil.getInstance().setHeight(25)` instead of `ScreenUtil().setHeight(25)` | ||
# 0.4.1 | ||
|
||
## [0.5.2] - Change the parameter type from int to double | ||
- Fix font adaptation issues | ||
|
||
setWidth,setHeight,setSp. | ||
for example: | ||
you can use setWidth(100) or setWidth(100.0) | ||
# 0.4.2 | ||
|
||
## [0.5.3] - Change the units of statusBarHeight and bottomBarHeight to dp | ||
- add two Properties | ||
- ///Current device width dp | ||
- ///当前设备宽度 dp | ||
- ScreenUtil.screenWidthDp | ||
|
||
- ///Current device height dp | ||
- ///当前设备高度 dp | ||
- ScreenUtil.screenHeightDp | ||
|
||
# 0.4.3 | ||
|
||
- Modify the font to change with the system zoom mode. The default value is false. | ||
|
||
- setSp(int fontSize, [allowFontScaling = false]) => allowFontScaling | ||
? setWidth(fontSize) \* \_textScaleFactor | ||
: setWidth(fontSize); | ||
|
||
# 0.4.4 | ||
|
||
- Fix bugs that default fonts change with the system | ||
|
||
# 0.5.1 | ||
|
||
- Fix the wrong way of using | ||
|
||
- It is recommended to use `ScreenUtil.getInstance()` instead of `ScreenUtil()` , for example: `ScreenUtil.getInstance().setHeight(25)` instead of `ScreenUtil().setHeight(25)` | ||
|
||
# 0.5.2 | ||
|
||
- Change the parameter type from int to double | ||
|
||
- setWidth,setHeight,setSp. for example: you can use setWidth(100) or setWidth(100.0) | ||
|
||
# 0.5.3 | ||
|
||
- Change the units of statusBarHeight and bottomBarHeight to dp | ||
|
||
# 0.6.0 | ||
|
||
- Completing comments , adding English commentsWelcome to add, correct |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.