CHANGELOG.md
1.02 KB
[0.0.1] - first version
[0.2.2] - Fixed bug when releasing
[0.2.2] - Optimize documentation
[0.3.0] - Add font size adaptation
[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
[0.4.0] - Optimize font adaptation method
[0.4.1] - Fix font adaptation issues
[0.4.2] - add two Properties
///Current device width dp
///当前设备宽度 dp
ScreenUtil.screenWidthDp
///Current device height dp
///当前设备高度 dp
ScreenUtil.screenHeightDp
[0.4.2] - 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);