File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
- # 5.0.0-nullsafety.1
1
+ # 5.0.0-nullsafety.2
2
2
- merge 4.0.2+2 #186
3
3
4
4
# 5.0.0-nullsafety.1
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ class _HomePageState extends State<HomePage> {
65
65
// Without using Extensions
66
66
Container (
67
67
padding: EdgeInsets .all (ScreenUtil ().setWidth (10 )),
68
- width: 180. w ,
68
+ width: ScreenUtil (). setWidth ( 180 ) ,
69
69
height: ScreenUtil ().setHeight (200 ),
70
70
color: Colors .blue,
71
71
child: Text (
Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ class _HomePageState extends State<HomePage> {
47
47
children: < Widget > [
48
48
Container (
49
49
padding: EdgeInsets .all (ScreenUtil ().setWidth (10 )),
50
- width: ScreenUtil (). setWidth ( 375 ) ,
51
- height: ScreenUtil (). setHeight ( 200 ) ,
50
+ width: 180. w ,
51
+ height: 200. h ,
52
52
color: Colors .red,
53
53
child: Text (
54
54
'我的实际宽度:${0.5 .sw }dp \n '
@@ -58,23 +58,23 @@ class _HomePageState extends State<HomePage> {
58
58
),
59
59
Container (
60
60
padding: EdgeInsets .all (ScreenUtil ().setWidth (10 )),
61
- width: 180. w ,
62
- height: 200. h ,
61
+ width: ScreenUtil (). setWidth ( 180 ) ,
62
+ height: ScreenUtil (). setHeight ( 200 ) ,
63
63
color: Colors .blue,
64
64
child: Text (
65
65
'我的设计稿宽度: 180dp \n '
66
66
'我的设计稿高度: 200dp' ,
67
67
style: TextStyle (color: Colors .white, fontSize: ScreenUtil ().setSp (12 ))),
68
68
),
69
-
70
69
],
71
70
),
72
71
Container (
73
72
padding: EdgeInsets .all (ScreenUtil ().setWidth (10 )),
74
73
width: 100. r,
75
74
height: 100. r,
76
75
color: Colors .green,
77
- child: Text ('我是正方形,边长是100' ,
76
+ child: Text (
77
+ '我是正方形,边长是100' ,
78
78
style: TextStyle (
79
79
color: Colors .white,
80
80
fontSize: ScreenUtil ().setSp (12 ),
You can’t perform that action at this time.
0 commit comments