提交 dad78776 编写于 作者: L lizhuoyuan

fix #89

优化屏幕旋转效果
 字体适配统一使用宽度
上级 3e710014
......@@ -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
......
......@@ -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:
......
......@@ -27,7 +27,7 @@ dependencies:
flutter:
sdk: flutter
# 添加依赖
flutter_screenutil: ^1.0.1
flutter_screenutil: ^1.0.2
```
### 在每个使用的地方导入包:
......
......@@ -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:
......
......@@ -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>[
......
......@@ -94,7 +94,7 @@ class ScreenUtil {
double get scaleHeight => _screenHeight / uiHeightPx;
double get scaleText => scaleWidth > scaleHeight ? scaleWidth : scaleHeight;
double get scaleText => scaleWidth;
/// 根据UI设计的设备宽度适配
/// 高度也可以根据这个来做适配可以保证不变形,比如你先要一个正方形的时候.
......
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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册