Container
is a StatelessWidget
that wraps a child widget and applies
additional properties and transformations to it.
For example a container can:
- apply padding and margin
- add borders
- setting width and height
- apply geometrical transformations, such as rotation, translation, and scaling
When none of these features are used, the container solely wraps its child widget. In this case the container is unnecessary and can be removed,
making the code shorter and the intent clearer.