Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update index.md #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tutorials/layout/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ Flutter布局机制的核心就是widget。在Flutter中,几乎所有东西都

<img src="images/sample-flutter-layout.png" alt="node tree representing the sample layout">

大部分应该看起来应该像您所期望的,但你可能想了解一下Container(以粉红色显示)。
大部分看起来应该像您所期望的,但你可能想了解一下Container(以粉红色显示)。
Container也是一个widget,允许您自定义其子widget。如果要添加填充,边距,边框或背景色,请使用Container来设置(译者语:只有容器有这些属性)。

在这个例子中,每个Text放置在Container中以添加边距。整个行也被放置在容器中以在行的周围添加填充。
Expand Down