Showing
3 changed files
with
25 additions
and
9 deletions
1 | +# 5.6.1 | ||
2 | + | ||
3 | +- add smx => max(toDouble(), sp) , for example: 12.smx | ||
4 | + | ||
1 | # 5.6.0 | 5 | # 5.6.0 |
6 | + | ||
2 | - bug fix: #434 | 7 | - bug fix: #434 |
3 | - add w and h on EdgeInsets,Radius,BorderRadius,BoxConstraints | 8 | - add w and h on EdgeInsets,Radius,BorderRadius,BoxConstraints |
4 | 9 | ||
5 | # 5.5.4 | 10 | # 5.5.4 |
11 | + | ||
6 | - Bug Fix: False sizes when using DevicePreview | 12 | - Bug Fix: False sizes when using DevicePreview |
7 | 13 | ||
8 | # 5.5.3+2 | 14 | # 5.5.3+2 |
15 | + | ||
9 | - Fix #398 | 16 | - Fix #398 |
10 | 17 | ||
11 | # 5.5.3+1 | 18 | # 5.5.3+1 |
19 | + | ||
12 | - Fix compatibility with flutter sdk 2.x | 20 | - Fix compatibility with flutter sdk 2.x |
13 | 21 | ||
14 | # 5.5.3 | 22 | # 5.5.3 |
23 | + | ||
15 | - Bug Fix: Some widgets disapear because of parent rebuild. | 24 | - Bug Fix: Some widgets disapear because of parent rebuild. |
16 | - Bug Fix: issue #362. Null check operator used on a null value when using ScreenUtil.init(). | 25 | - Bug Fix: issue #362. Null check operator used on a null value when using ScreenUtil.init(). |
17 | - Re-add context to builder parameters **(users request)**. | 26 | - Re-add context to builder parameters **(users request)**. |
18 | - Add some standard rebuild factors. | 27 | - Add some standard rebuild factors. |
19 | 28 | ||
20 | # 5.5.2 | 29 | # 5.5.2 |
30 | + | ||
21 | - Add rebuildFactor property | 31 | - Add rebuildFactor property |
22 | - Bug Fix: False sizes when resizing | 32 | - Bug Fix: False sizes when resizing |
23 | 33 | ||
24 | # 5.5.1 | 34 | # 5.5.1 |
35 | + | ||
25 | - Bug Fix: Assertion Failed (Find MediaQuery in ancestors) | 36 | - Bug Fix: Assertion Failed (Find MediaQuery in ancestors) |
26 | - Some performance improvements and fixes | 37 | - Some performance improvements and fixes |
27 | 38 | ||
28 | # 5.5.0 | 39 | # 5.5.0 |
40 | + | ||
29 | - Bug Fix: Reaching context that no longer used. | 41 | - Bug Fix: Reaching context that no longer used. |
30 | 42 | ||
31 | # 5.4.0+1 | 43 | # 5.4.0+1 |
44 | + | ||
32 | - delete log | 45 | - delete log |
33 | 46 | ||
34 | # 5.4.0 | 47 | # 5.4.0 |
48 | + | ||
35 | - merge #352 | 49 | - merge #352 |
36 | 50 | ||
37 | # 5.3.1 | 51 | # 5.3.1 |
38 | -- add num.verticalSpacingRadius | ||
39 | - num.horizontalSpaceRadius | ||
40 | - num.setVerticalSpacingFromWidth | 52 | + |
53 | +- add num.verticalSpacingRadius num.horizontalSpaceRadius num.setVerticalSpacingFromWidth | ||
41 | - update num.horizontalSpace | 54 | - update num.horizontalSpace |
42 | - | 55 | + |
43 | # 5.3.0 | 56 | # 5.3.0 |
44 | -- For the size, use the context to get it first, which needs to provide the Context | ||
45 | - More rigorous context checking | 57 | + |
58 | +- For the size, use the context to get it first, which needs to provide the Context More rigorous | ||
59 | + context checking | ||
46 | 60 | ||
47 | # 5.2.0 | 61 | # 5.2.0 |
48 | 62 | ||
49 | - Rollback of 5.1.1 commit | 63 | - Rollback of 5.1.1 commit |
50 | - Fix the problem of inaccurate height | 64 | - Fix the problem of inaccurate height |
51 | - merge #332(https://github.com/OpenFlutter/flutter_screenutil/pull/332) | 65 | - merge #332(https://github.com/OpenFlutter/flutter_screenutil/pull/332) |
52 | - add | ||
53 | - num.setVerticalSpacing // SizedBox(height: num * scaleHeight) | ||
54 | - num.horizontalSpace // SizedBox(height: num * scaleWidth) | 66 | + add num.setVerticalSpacing // SizedBox(height: num * scaleHeight) |
67 | + num.horizontalSpace // SizedBox(height: num * scaleWidth) | ||
55 | 68 | ||
56 | # 5.1.1 | 69 | # 5.1.1 |
57 | 70 |
@@ -35,6 +35,7 @@ class HomePageScaffold extends StatelessWidget { | @@ -35,6 +35,7 @@ class HomePageScaffold extends StatelessWidget { | ||
35 | child: Column( | 35 | child: Column( |
36 | crossAxisAlignment: CrossAxisAlignment.start, | 36 | crossAxisAlignment: CrossAxisAlignment.start, |
37 | children: <Widget>[ | 37 | children: <Widget>[ |
38 | + RSizedBox.square(dimension: 20), | ||
38 | Row( | 39 | Row( |
39 | children: <Widget>[ | 40 | children: <Widget>[ |
40 | // Using Extensions | 41 | // Using Extensions |
@@ -22,6 +22,8 @@ extension SizeExtension on num { | @@ -22,6 +22,8 @@ extension SizeExtension on num { | ||
22 | ///I think that it is good for save size balance on big sizes of screen | 22 | ///I think that it is good for save size balance on big sizes of screen |
23 | double get sm => min(toDouble(), sp); | 23 | double get sm => min(toDouble(), sp); |
24 | 24 | ||
25 | + double get smx => max(toDouble(), sp); | ||
26 | + | ||
25 | ///屏幕宽度的倍数 | 27 | ///屏幕宽度的倍数 |
26 | ///Multiple of screen width | 28 | ///Multiple of screen width |
27 | double get sw => ScreenUtil().screenWidth * this; | 29 | double get sw => ScreenUtil().screenWidth * this; |
-
Please register or login to post a comment