Beginner
Flutter
Q32 / 100
What is SizedBox primarily used for?
Correct! Well done.
Incorrect.
The correct answer is B) To create a fixed-size box, commonly used as a spacing/gap widget
B
Correct Answer
To create a fixed-size box, commonly used as a spacing/gap widget
Explanation
SizedBox creates a fixed-size box. It is commonly used as a gap/spacer between widgets (e.g., SizedBox(height: 16)) or to give a specific width/height to a child. SizedBox.shrink() creates a zero-size invisible box.
Progress
32/100