Skip to content

Commit

Permalink
Merge pull request #3 from kunkun12/patch-1
Browse files Browse the repository at this point in the history
修正 widget 错别字
  • Loading branch information
wendux authored Oct 9, 2018
2 parents 0dec0b0 + 78f7a33 commit c679cc8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flutter-for-react-native.md
Original file line number Diff line number Diff line change
Expand Up @@ -397,11 +397,11 @@ void main() {

### 如何使用组件并将其嵌套以形成组件树?

在Flutter中,几乎所有东西都是Weights
在Flutter中,几乎所有东西都是widget

Weights是应用程序用户界面的基本构建块,您将组件组成一个层次结构,调用组件树。每个窗口Weights都嵌套在父窗口Weights中,并从其父窗口继承属性。甚至应用程序对象本身也是一个组件,没有单独的“应用程序”对象。相反,根组件担任此角色。
widget是应用程序用户界面的基本构建块,您将组件组成一个层次结构,调用组件树。每个窗口widget都嵌套在父窗口widget中,并从其父窗口继承属性。甚至应用程序对象本身也是一个组件,没有单独的“应用程序”对象。相反,根组件担任此角色。

Weight可以定义:
Widget可以定义:

* 结构元素 - 如按钮或菜单
* 风格元素 - 像字体或颜色主题
Expand Down

0 comments on commit c679cc8

Please sign in to comment.