李卓原

完善文档

1 -# Generated by pub on 2018-10-11 15:18:21.251012. 1 +# Generated by pub on 2018-10-16 19:37:21.225361.
2 analyzer:file:///C:/Users/Frank/AppData/Roaming/Pub/Cache/hosted/pub.flutter-io.cn/analyzer-0.32.4/lib/ 2 analyzer:file:///C:/Users/Frank/AppData/Roaming/Pub/Cache/hosted/pub.flutter-io.cn/analyzer-0.32.4/lib/
3 args:file:///C:/Users/Frank/AppData/Roaming/Pub/Cache/hosted/pub.flutter-io.cn/args-1.5.0/lib/ 3 args:file:///C:/Users/Frank/AppData/Roaming/Pub/Cache/hosted/pub.flutter-io.cn/args-1.5.0/lib/
4 async:file:///C:/Users/Frank/AppData/Roaming/Pub/Cache/hosted/pub.flutter-io.cn/async-2.0.8/lib/ 4 async:file:///C:/Users/Frank/AppData/Roaming/Pub/Cache/hosted/pub.flutter-io.cn/async-2.0.8/lib/
@@ -5,3 +5,7 @@ @@ -5,3 +5,7 @@
5 ## [0.2.2] - Optimize documentation 5 ## [0.2.2] - Optimize documentation
6 6
7 ## [0.3.0] - Add font size adaptation 7 ## [0.3.0] - Add font size adaptation
  8 +
  9 +## [0.3.0] - Perfect documentation
  10 +Width is enlarged relative to the design draft => The ratio of font and width to the size of the design
  11 +Height is enlarged relative to the design draft => The ratio of height width to the size of the design
@@ -40,9 +40,9 @@ class _MyHomePageState extends State<MyHomePage> { @@ -40,9 +40,9 @@ class _MyHomePageState extends State<MyHomePage> {
40 print( 40 print(
41 'Status bar height:${ScreenUtil.statusBarHeight}px'); //Status bar height , Notch will be higher Unit px 41 'Status bar height:${ScreenUtil.statusBarHeight}px'); //Status bar height , Notch will be higher Unit px
42 print( 42 print(
43 - 'Width is enlarged relative to the design draft:${ScreenUtil().scaleWidth}'); //The width is enlarged relative to the design draft 43 + 'The ratio of font and width to the size of the design:${ScreenUtil().scaleWidth}'); //The width is enlarged relative to the design draft
44 print( 44 print(
45 - 'Height is enlarged relative to the design draft:${ScreenUtil().scaleHeight}'); //The height is enlarged relative to the design draft 45 + 'The ratio of height width to the size of the design:${ScreenUtil().scaleHeight}'); //The height is enlarged relative to the design draft
46 print('System font scaling factor:${ScreenUtil.textScaleFactory}'); 46 print('System font scaling factor:${ScreenUtil.textScaleFactory}');
47 47
48 return new Scaffold( 48 return new Scaffold(
@@ -105,6 +105,10 @@ class _MyHomePageState extends State<MyHomePage> { @@ -105,6 +105,10 @@ class _MyHomePageState extends State<MyHomePage> {
105 Text('My font size is 28px and will change with the system.', 105 Text('My font size is 28px and will change with the system.',
106 style: TextStyle( 106 style: TextStyle(
107 color: Colors.black, fontSize: ScreenUtil().setSp(28))), 107 color: Colors.black, fontSize: ScreenUtil().setSp(28))),
  108 + Text('My font size is default.',
  109 + style: TextStyle(
  110 + color: Colors.black,
  111 + )),
108 ], 112 ],
109 ) 113 )
110 ], 114 ],
@@ -39,9 +39,9 @@ class _MyHomePageState extends State<MyHomePage> { @@ -39,9 +39,9 @@ class _MyHomePageState extends State<MyHomePage> {
39 print( 39 print(
40 '状态栏高度:${ScreenUtil.statusBarHeight}px'); //Status bar height , Notch will be higher Unit px 40 '状态栏高度:${ScreenUtil.statusBarHeight}px'); //Status bar height , Notch will be higher Unit px
41 print( 41 print(
42 - '宽度相对于设计稿放大的倍数:${ScreenUtil().scaleWidth}'); //The width is enlarged relative to the design draft 42 + '字体和宽度相对设计稿放大的比例:${ScreenUtil().scaleWidth}'); //The width is enlarged relative to the design draft
43 print( 43 print(
44 - '高度相对于设计稿放大的倍数:${ScreenUtil().scaleHeight}'); //The height is enlarged relative to the design draft 44 + '高度相对于设计稿放大的比例:${ScreenUtil().scaleHeight}'); //The height is enlarged relative to the design draft
45 print('系统的字体缩放比例:${ScreenUtil.textScaleFactory}'); 45 print('系统的字体缩放比例:${ScreenUtil.textScaleFactory}');
46 46
47 return new Scaffold( 47 return new Scaffold(
@@ -82,7 +82,7 @@ packages: @@ -82,7 +82,7 @@ packages:
82 path: ".." 82 path: ".."
83 relative: true 83 relative: true
84 source: path 84 source: path
85 - version: "0.2.0" 85 + version: "0.3.0"
86 flutter_test: 86 flutter_test:
87 dependency: "direct dev" 87 dependency: "direct dev"
88 description: flutter 88 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.3.0 3 +version: 0.3.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