Fix code on Step 4 in 'Building layouts' page #8922
Labels
a.tut.tutorial
Relates to the Tutorial section of docs.flutter.dev
cl.fixed
Issue is closed as fixed
e1-hours
Effort: < 8 hrs
from.page-issue
Reported in a reader-filed concern
p2-medium
Necessary but not urgent concern. Resolve when possible.
t.ui.layout
Relates to layout of UI components
Page URL
https://docs.flutter.dev/ui/layout/tutorial/
Page source
https://github.com/flutter/website/tree/main/src/ui/layout/tutorial.md
Describe the problem
In Step 4, the instructions indicate using a Container widget, but the sample code doesn't use a Container widget, and uses a Padding() widget instead.
Expected fix
Two choices
Additional context
I don't know enough Flutter to know which widget choice is more common or adventageous. The Container widget can provide more properties, if more than just Container.padding is needed in the future.
The text was updated successfully, but these errors were encountered: