SizedBox Widget is a kind of box with a fixed size that directs itโs child to also have that size
It can be used to set size constraints to the child widget, put an empty SizedBox between the two widgets to get some space in between, or something else.
Checkout this use case of SizedBox below, This snippet makes the child widget (a Card with some Text) have the exact size 200x300, parental constraints permitting
Important Properties 1. Child -> Widget
Restricted child of SizedBox
2. Height -> double
Height of SizedBox
3. Width -> double
Width of SizedBox
If you try to give SizedBox infinity size, it will expands as much as allowed by itโs parent widget