From dad78776861c7584c364cd8ee24c35e632c182d7 Mon Sep 17 00:00:00 2001 From: lizhuoyuan Date: Tue, 14 Jan 2020 12:07:53 +0800 Subject: [PATCH] =?UTF-8?q?fix=20#89=20=E4=BC=98=E5=8C=96=E5=B1=8F?= =?UTF-8?q?=E5=B9=95=E6=97=8B=E8=BD=AC=E6=95=88=E6=9E=9C=20=20=E5=AD=97?= =?UTF-8?q?=E4=BD=93=E9=80=82=E9=85=8D=E7=BB=9F=E4=B8=80=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=AE=BD=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 ++++ README.md | 2 +- README_CN.md | 2 +- README_PT.md | 2 +- example/lib/main_zh.dart | 2 +- lib/flutter_screenutil.dart | 2 +- pubspec.yaml | 2 +- 7 files changed, 10 insertions(+), 6 deletions(-) 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: