I know both Scaffold and Container are parent widgets in Flutter, but when should I use a Scaffold and when should I use a Container to layout my child widget?
Scaffold
and container
serve different purposes for layout and design.
Scaffold
Link - Scaffold
Container
Link -Container
Conclusion
You need Scaffold widget as main parent of your page where you use container for smaller widget into page to give them different properties like size, border, padding, margin etc.