Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
优化屏幕旋转效果
 字体适配统一使用宽度
  • Loading branch information
lizhuoyuan committed Jan 14, 2020
1 parent 3e71001 commit dad7877
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies:
flutter:
sdk: flutter
# 添加依赖
flutter_screenutil: ^1.0.1
flutter_screenutil: ^1.0.2
```

### 在每个使用的地方导入包:
Expand Down
2 changes: 1 addition & 1 deletion README_PT.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion example/lib/main_zh.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class _ExampleWidgetState extends State<ExampleWidget> {
appBar: AppBar(
title: Text(widget.title),
),
body: Center(
body: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
Expand Down
2 changes: 1 addition & 1 deletion lib/flutter_screenutil.dart
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class ScreenUtil {

double get scaleHeight => _screenHeight / uiHeightPx;

double get scaleText => scaleWidth > scaleHeight ? scaleWidth : scaleHeight;
double get scaleText => scaleWidth;

/// 根据UI设计的设备宽度适配
/// 高度也可以根据这个来做适配可以保证不变形,比如你先要一个正方形的时候.
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit dad7877

Please sign in to comment.