Container is a widget class that allows you to customize its child widget.
Use a Container when you want to add padding, margins, borders, or background color, to name some of its capabilities.
A child property if they take a single child—for example, Center or Container A children property if they take a list of widgets—for example, Row, Column, ListView, or Stack.
Widgets can be sized to fit within a row or column by using the Expanded widget. To fix the previous example where the row of images is too wide for its render box, wrap each image with an Expanded widget.
Referensi:
- https://docs.flutter.dev/ui/layout
- https://api.flutter.dev/flutter/painting/EdgeInsets/EdgeInsets.fromLTRB.html
Ihsanunot & Dart SkyWalker