lizhuoyuan

fix #89

优化屏幕旋转效果
 字体适配统一使用宽度
@@ -5,6 +5,10 @@ @@ -5,6 +5,10 @@
5 * @LastEditTime: 2020年1月6日 16:41:02 5 * @LastEditTime: 2020年1月6日 16:41:02
6 * @Description: Update log 6 * @Description: Update log
7 --> 7 -->
  8 +# 1.0.1
  9 +- fix #89
  10 +- 优化屏幕旋转效果
  11 +- 字体适配统一使用宽度
8 12
9 # 1.0.1 13 # 1.0.1
10 - Rebuild code, change API 14 - Rebuild code, change API
@@ -23,7 +23,7 @@ dependencies: @@ -23,7 +23,7 @@ dependencies:
23 flutter: 23 flutter:
24 sdk: flutter 24 sdk: flutter
25 # add flutter_screenutil 25 # add flutter_screenutil
26 - flutter_screenutil: ^1.0.1 26 + flutter_screenutil: ^1.0.2
27 ``` 27 ```
28 28
29 ### Add the following imports to your Dart code: 29 ### Add the following imports to your Dart code:
@@ -27,7 +27,7 @@ dependencies: @@ -27,7 +27,7 @@ dependencies:
27 flutter: 27 flutter:
28 sdk: flutter 28 sdk: flutter
29 # 添加依赖 29 # 添加依赖
30 - flutter_screenutil: ^1.0.1 30 + flutter_screenutil: ^1.0.2
31 ``` 31 ```
32 32
33 ### 在每个使用的地方导入包: 33 ### 在每个使用的地方导入包:
@@ -23,7 +23,7 @@ dependencies: @@ -23,7 +23,7 @@ dependencies:
23 flutter: 23 flutter:
24 sdk: flutter 24 sdk: flutter
25 # add flutter_screenutil 25 # add flutter_screenutil
26 - flutter_screenutil: ^1.0.1 26 + flutter_screenutil: ^1.0.2
27 ``` 27 ```
28 28
29 ### Adicione o seguinte import em seu código Dart: 29 ### Adicione o seguinte import em seu código Dart:
@@ -55,7 +55,7 @@ class _ExampleWidgetState extends State<ExampleWidget> { @@ -55,7 +55,7 @@ class _ExampleWidgetState extends State<ExampleWidget> {
55 appBar: AppBar( 55 appBar: AppBar(
56 title: Text(widget.title), 56 title: Text(widget.title),
57 ), 57 ),
58 - body: Center( 58 + body: SingleChildScrollView(
59 child: Column( 59 child: Column(
60 crossAxisAlignment: CrossAxisAlignment.center, 60 crossAxisAlignment: CrossAxisAlignment.center,
61 children: <Widget>[ 61 children: <Widget>[
@@ -94,7 +94,7 @@ class ScreenUtil { @@ -94,7 +94,7 @@ class ScreenUtil {
94 94
95 double get scaleHeight => _screenHeight / uiHeightPx; 95 double get scaleHeight => _screenHeight / uiHeightPx;
96 96
97 - double get scaleText => scaleWidth > scaleHeight ? scaleWidth : scaleHeight; 97 + double get scaleText => scaleWidth;
98 98
99 /// 根据UI设计的设备宽度适配 99 /// 根据UI设计的设备宽度适配
100 /// 高度也可以根据这个来做适配可以保证不变形,比如你先要一个正方形的时候. 100 /// 高度也可以根据这个来做适配可以保证不变形,比如你先要一个正方形的时候.
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: 1.0.1 3 +version: 1.0.2
4 homepage: https://github.com/OpenFlutter/flutter_screenutil 4 homepage: https://github.com/OpenFlutter/flutter_screenutil
5 5
6 environment: 6 environment: