Showing
4 changed files
with
12 additions
and
1 deletions
1 | +# 5.5.3+2 | ||
2 | +- Fix #398 | ||
3 | + | ||
4 | +# 5.5.3+1 | ||
5 | +- Fix compatibility with flutter sdk 2.x | ||
6 | + | ||
1 | # 5.5.3 | 7 | # 5.5.3 |
2 | - Bug Fix: Some widgets disapear because of parent rebuild. | 8 | - Bug Fix: Some widgets disapear because of parent rebuild. |
3 | - Bug Fix: issue #362. Null check operator used on a null value when using ScreenUtil.init(). | 9 | - Bug Fix: issue #362. Null check operator used on a null value when using ScreenUtil.init(). |
@@ -42,11 +42,15 @@ import 'package:flutter_screenutil/flutter_screenutil.dart'; | @@ -42,11 +42,15 @@ import 'package:flutter_screenutil/flutter_screenutil.dart'; | ||
42 | |属性|类型|默认值|描述| | 42 | |属性|类型|默认值|描述| |
43 | |:---|:---|:---|:---| | 43 | |:---|:---|:---|:---| |
44 | |designSize|Size|Size(360, 690)|设计稿中设备的尺寸(单位随意,建议dp,但在使用过程中必须保持一致)| | 44 | |designSize|Size|Size(360, 690)|设计稿中设备的尺寸(单位随意,建议dp,但在使用过程中必须保持一致)| |
45 | +| deviceSize | Size | null | 物理设备的大小 | | ||
45 | |builder|Widget Function()|Container()|一般返回一个MaterialApp类型的Function()| | 46 | |builder|Widget Function()|Container()|一般返回一个MaterialApp类型的Function()| |
46 | |orientation|Orientation|portrait|屏幕方向| | 47 | |orientation|Orientation|portrait|屏幕方向| |
47 | |splitScreenMode|bool|false|支持分屏尺寸| | 48 | |splitScreenMode|bool|false|支持分屏尺寸| |
48 | |minTextAdapt|bool|false|是否根据宽度/高度中的最小值适配文字| | 49 | |minTextAdapt|bool|false|是否根据宽度/高度中的最小值适配文字| |
49 | |context|BuildContext|null|传入context会更灵敏的根据屏幕变化而改变| | 50 | |context|BuildContext|null|传入context会更灵敏的根据屏幕变化而改变| |
51 | +| child | Widget | null | builder的一部分,其依赖项属性不使用该库 | | ||
52 | +| rebuildFactor | Function | *default* | 返回屏幕指标更改时是否重建。 | | ||
53 | + | ||
50 | 54 | ||
51 | ### 初始化并设置适配尺寸及字体大小是否根据系统的“字体大小”辅助选项来进行缩放 | 55 | ### 初始化并设置适配尺寸及字体大小是否根据系统的“字体大小”辅助选项来进行缩放 |
52 | 在使用之前请设置好设计稿的宽度和高度,传入设计稿的宽度和高度(单位随意,但在使用过程中必须保持一致) | 56 | 在使用之前请设置好设计稿的宽度和高度,传入设计稿的宽度和高度(单位随意,但在使用过程中必须保持一致) |
@@ -115,6 +115,7 @@ class ScreenUtil { | @@ -115,6 +115,7 @@ class ScreenUtil { | ||
115 | : Orientation.portrait); | 115 | : Orientation.portrait); |
116 | 116 | ||
117 | _instance | 117 | _instance |
118 | + .._context = context | ||
118 | .._uiSize = designSize | 119 | .._uiSize = designSize |
119 | .._splitScreenMode = splitScreenMode | 120 | .._splitScreenMode = splitScreenMode |
120 | .._minTextAdapt = minTextAdapt | 121 | .._minTextAdapt = minTextAdapt |
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: 5.5.3 | 3 | +version: 5.5.3+2 |
4 | homepage: https://github.com/OpenFlutter/flutter_screenutil | 4 | homepage: https://github.com/OpenFlutter/flutter_screenutil |
5 | 5 | ||
6 | environment: | 6 | environment: |
-
Please register or login to post a comment