CHANGELOG.md 3.1 KB
Newer Older
L
lizhuoyuan 已提交
1 2 3 4
<!--
 * @Author: zhuoyuan93@gmail.com
 * @Date: 2018-10-16 19:43:03
 * @LastEditors: zhuoyuan93@gmail.com
L
2.0.0  
LiZhuoyuan 已提交
5
 * @LastEditTime: 2020年6月20日 11:20:02
L
lizhuoyuan 已提交
6 7
 * @Description: Update log
 -->
L
LiZhuoyuan 已提交
8
 
L
LiZhuoyuan 已提交
9
# 2.3.1
L
LiZhuoyuan 已提交
10
- add textStyle Example.
L
2.2.0  
LiZhuoyuan 已提交
11

2.3  
李卓原 已提交
12 13 14
# 2.3.0
- We still need context to initialize, sorry.

L
2.2.0  
LiZhuoyuan 已提交
15 16 17 18
# 2.2.0
- add 'wp','hp'. Get the height/width of the screen proportionally
- For example: 0.5.wp : Half the width of the screen.

L
2.1.0  
LiZhuoyuan 已提交
19 20
# 2.1.0 
- add 'nsp' , you can use 'fontSize: 24.nsp' instead of 'fontSize: ScreenUtil().setSp(24, allowFontScalingSelf: false)'
L
lizhuoyuan 已提交
21

L
2.1.0  
LiZhuoyuan 已提交
22
# 2.0.0
L
2.0.0  
LiZhuoyuan 已提交
23 24 25
- Use `MediaQueryData.fromWindow(window)` instead of `MediaQuery.of(context)`, no context parameter required
- API changes, please note

L
2.1.0  
LiZhuoyuan 已提交
26
# 1.1.0
L
lizhuoyuan 已提交
27 28 29 30 31 32
- support ExtensionMethod Dart-SDK-2.6.0
- you can use 'width: 50.w' instead of 'width: ScreenUtil().setWidth(50)'
  '50.h' instead of 'ScreenUtil().setHeight(50)'
  '24.sp' instead of 'ScreenUtil().setSp(24)'
  '24.ssp' instead of 'ScreenUtil().setSp(24, allowFontScalingSelf: true)'

L
lizhuoyuan 已提交
33
# 1.0.2
L
fix #89  
lizhuoyuan 已提交
34 35 36
- fix #89 
- 优化屏幕旋转效果
- 字体适配统一使用宽度
L
1.0.0  
lizhuoyuan 已提交
37

L
LiZhuoyuan 已提交
38
# 1.0.1
L
1.0.0  
lizhuoyuan 已提交
39
- Rebuild code, change API
L
lizhuoyuan 已提交
40 41
  Delete "getInstance()", please use "ScreenUtil ()" instead of "ScreenUtil.getInstance()"
  use "ScreenUtil().setSp(24, allowFontScalingSelf: true)" instead of "ScreenUtil.getInstance().setSp(14, true)"
L
1.0.0  
lizhuoyuan 已提交
42 43 44
- Modify the initialization method
- Fix #68
- Change example code
L
LiZhuoyuan 已提交
45
  Example CompileSdkVersion change to 28
L
1.0.0  
lizhuoyuan 已提交
46

L
LiZhuoyuan 已提交
47
**If there is significant impact, please return to 0.7.0**
L
1.0.0  
lizhuoyuan 已提交
48

L
LiZhuoyuan 已提交
49
# 0.7.0
L
lizhuoyuan 已提交
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135

- Replace textScaleFactory with textScaleFactor , It's a typo.

# 0.6.1

- Add return types to all methods.

# 0.6.0

- Completing comments , adding English commentsWelcome to add, correct
- 参数同时支持传入 int / double 或者是var size = 100 , var size = 100.0.
- The argument also supports passing in in / double / var size = 100 /var size = 100.0

# 0.5.3

- Change the units of statusBarHeight and bottomBarHeight to dp

# 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.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.4.4

- Fix bugs that default fonts change with the system

# 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.2

- add two Properties
- ///Current device width dp
- ///当前设备宽度 dp
- ScreenUtil.screenWidthDp

- ///Current device height dp
- ///当前设备高度 dp
- ScreenUtil.screenHeightDp

# 0.4.1

- Fix font adaptation issues

# 0.4.0

- Optimize font adaptation method

# 0.3.1

- 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


# 0.3.0

- Add font size adaptation

# 0.2.2

- Optimize documentation

# 0.0.2

- Fixed bug when releasing

# 0.0.1

- first version