diff --git a/CHANGELOG.md b/CHANGELOG.md index 45b290d..62fd4ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ * @LastEditTime: 2020年1月6日 16:41:02 * @Description: Update log --> +# 1.0.1 +- fix #89 +- 优化屏幕旋转效果 +- 字体适配统一使用宽度 # 1.0.1 - Rebuild code, change API diff --git a/README.md b/README.md index fb64e7c..6569e0d 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ dependencies: flutter: sdk: flutter # add flutter_screenutil - flutter_screenutil: ^1.0.1 + flutter_screenutil: ^1.0.2 ``` ### Add the following imports to your Dart code: diff --git a/README_CN.md b/README_CN.md index 7088e73..b060c3d 100644 --- a/README_CN.md +++ b/README_CN.md @@ -27,7 +27,7 @@ dependencies: flutter: sdk: flutter # 添加依赖 - flutter_screenutil: ^1.0.1 + flutter_screenutil: ^1.0.2 ``` ### 在每个使用的地方导入包: diff --git a/README_PT.md b/README_PT.md index 1417021..1b1dcc9 100644 --- a/README_PT.md +++ b/README_PT.md @@ -23,7 +23,7 @@ dependencies: flutter: sdk: flutter # add flutter_screenutil - flutter_screenutil: ^1.0.1 + flutter_screenutil: ^1.0.2 ``` ### Adicione o seguinte import em seu código Dart: diff --git a/example/lib/main_zh.dart b/example/lib/main_zh.dart index 7298ab7..eb53a5b 100644 --- a/example/lib/main_zh.dart +++ b/example/lib/main_zh.dart @@ -55,7 +55,7 @@ class _ExampleWidgetState extends State { appBar: AppBar( title: Text(widget.title), ), - body: Center( + body: SingleChildScrollView( child: Column( crossAxisAlignment: CrossAxisAlignment.center, children: [ diff --git a/lib/flutter_screenutil.dart b/lib/flutter_screenutil.dart index 61f9f8f..fbf4ec9 100644 --- a/lib/flutter_screenutil.dart +++ b/lib/flutter_screenutil.dart @@ -94,7 +94,7 @@ class ScreenUtil { double get scaleHeight => _screenHeight / uiHeightPx; - double get scaleText => scaleWidth > scaleHeight ? scaleWidth : scaleHeight; + double get scaleText => scaleWidth; /// 根据UI设计的设备宽度适配 /// 高度也可以根据这个来做适配可以保证不变形,比如你先要一个正方形的时候. diff --git a/pubspec.yaml b/pubspec.yaml index 9ae72e3..4d53e16 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_screenutil description: A flutter plugin for adapting screen and font size.Guaranteed to look good on different models -version: 1.0.1 +version: 1.0.2 homepage: https://github.com/OpenFlutter/flutter_screenutil environment: