Skip to content

Commit

Permalink
Merge branch 'master' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
wendux authored Oct 9, 2018
2 parents c07bee6 + c679cc8 commit ba63231
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion _includes/setup/path-mac-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export PATH= PATH_TO_FLUTTER_GIT_DIRECTORY/flutter/bin:$PATH
4. 运行 `source $HOME/.bash_profile` 刷新当前终端窗口.

{% include note.html content="如果你使用的是zsh,终端启动时
`~/.bash_profile` 将不会被加载,解决办法就是修改 `/.zshrc` ,在其中添加:source /.bash_profile"
`~/.bash_profile` 将不会被加载,解决办法就是修改 `~/.zshrc` ,在其中添加:source ~/.bash_profile"
%}

5.通过运行`flutter/bin`命令验证目录是否在已经在PATH中:
Expand Down
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
2 changes: 1 addition & 1 deletion platform-channels.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ import android.os.Build.VERSION_CODES

1. 选择 'File > Open...'

1. 定位到您 Flutter app目录, 然后选择里面的 `ios`文件夹,点击 OK
1. 定位到您 Flutter app目录, 然后选择里面的 `iOS`文件夹,点击 OK

1. 确保Xcode项目的构建没有错误。

Expand Down

0 comments on commit ba63231

Please sign in to comment.