Complete the code to create a fixed space of 20 pixels height between widgets using SizedBox.
SizedBox(height: [1]),The height property of SizedBox sets the vertical space. Here, 20 pixels creates the fixed space.
Complete the code to add 16 pixels padding on all sides around a Text widget.
Padding(padding: EdgeInsets.all([1]), child: Text('Hello')),
EdgeInsets.all(16) adds 16 pixels of padding on every side of the child widget.
Fix the error in the code to create horizontal space of 30 pixels using SizedBox.
SizedBox(width: [1]),The width property expects a number without quotes. Using 30 (an integer) is correct.
Fill both blanks to add vertical padding of 10 and horizontal padding of 20 around a Container.
Padding(padding: EdgeInsets.symmetric(vertical: [1], horizontal: [2]), child: Container()),
EdgeInsets.symmetric takes vertical and horizontal values separately. Here, vertical is 10 and horizontal is 20 pixels.
Fill all three blanks to create a SizedBox with width 100, height 50, and a child Text widget.
SizedBox(width: [1], height: [2], child: Text('[3]')),
The SizedBox sets width and height to 100 and 50 pixels respectively, and the child Text widget displays 'Hello'.