Showing
1 changed file
with
6 additions
and
6 deletions
@@ -54,10 +54,7 @@ class HomePageScaffold extends StatelessWidget { | @@ -54,10 +54,7 @@ class HomePageScaffold extends StatelessWidget { | ||
54 | ), | 54 | ), |
55 | // Without using Extensions | 55 | // Without using Extensions |
56 | Container( | 56 | Container( |
57 | - decoration: BoxDecoration( | ||
58 | - borderRadius: BorderRadius.all(Radius.circular(16).w), | ||
59 | - color: Colors.blue, | ||
60 | - ), | 57 | + color: Colors.blue, |
61 | constraints: BoxConstraints(maxWidth: 180, minHeight: 200).hw, | 58 | constraints: BoxConstraints(maxWidth: 180, minHeight: 200).hw, |
62 | padding: EdgeInsets.all(10.w), | 59 | padding: EdgeInsets.all(10.w), |
63 | child: Text( | 60 | child: Text( |
@@ -72,10 +69,13 @@ class HomePageScaffold extends StatelessWidget { | @@ -72,10 +69,13 @@ class HomePageScaffold extends StatelessWidget { | ||
72 | ], | 69 | ], |
73 | ), | 70 | ), |
74 | Container( | 71 | Container( |
75 | - padding: EdgeInsets.all(10.w), | 72 | + padding: EdgeInsets.all(10).w, |
73 | + decoration: BoxDecoration( | ||
74 | + borderRadius: BorderRadius.all(Radius.circular(16).w), | ||
75 | + color: Colors.green, | ||
76 | + ), | ||
76 | width: 100.r, | 77 | width: 100.r, |
77 | height: 100.r, | 78 | height: 100.r, |
78 | - color: Colors.green, | ||
79 | child: Text( | 79 | child: Text( |
80 | 'I am a square with a side length of 100', | 80 | 'I am a square with a side length of 100', |
81 | style: TextStyle( | 81 | style: TextStyle( |
-
Please register or login to post a comment