Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
duwen committed Nov 29, 2018
2 parents 36b08f4 + 209ad50 commit 14c41cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions developing-packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Packages可以包含多种内容:

* Dart包:其中一些可能包含Flutter的特定功能,因此对Flutter框架具有依赖性,仅将其用于Flutter,例如[`fluro`](https://pub.dartlang.org/packages/fluro)包。

* 插件包:一中专用的Dart包,其中包含用Dart代码编写的API,以及针对Android(使用Java或Kotlin)和/或针对iOS(使用ObjC或Swift)平台的特定实现。一个具体的例子是[`battery`](https://pub.dartlang.org/packages/battery)插件包。
* 插件包:一种专用的Dart包,其中包含用Dart代码编写的API,以及针对Android(使用Java或Kotlin)和/或针对iOS(使用ObjC或Swift)平台的特定实现。一个具体的例子是[`battery`](https://pub.dartlang.org/packages/battery)插件包。

## Developing Dart packages {#dart}

Expand All @@ -48,10 +48,6 @@ flutter create --template=package hello

要测试软件包,请在`test`目录中添加[unit tests](https://flutter.io/testing/#unit-testing)

For additional details on how to organize the package contents, see the [Dart
library
package](https://www.dartlang.org/guides/libraries/create-library-packages)
documentation.
有关如何组织包内容的更多详细信息,请参阅[Dart library package](https://www.dartlang.org/guides/libraries/create-library-packages)文档。

## 开发插件包 {#plugin}
Expand Down Expand Up @@ -125,9 +121,6 @@ flutter create --template=plugin -i swift -a kotlin hello
1. 启动 Xcode
1. 选择 'File > Open', 然后选择 `hello/example/ios/Runner.xcworkspace` 文件.

The iOS platform code of your plugin is located in `Pods/Development
Pods/hello/Classes/` in the Project Navigator.

您插件的iOS平台代码位于`Pods/DevelopmentPods/hello/Classes/`中。

您可以通过按下&#9654按钮来运行示例应用程序
Expand Down
2 changes: 1 addition & 1 deletion tutorials/layout/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ summary: 本文详细的介绍了如何使用Flutter构建用户界面,然后
### Step 2: 实现标题行

首先,构建标题部分左边栏。将Column(列)放入Expanded中会拉伸该列以使用该行中的所有剩余空闲空间。
设置crossAxisAlignment属性值为CrossAxisAlignment.start,这会将将列中的子项左对齐
设置crossAxisAlignment属性值为CrossAxisAlignment.start,这会将该列中的子项左对齐

将第一行文本放入Container中,然后底部添加8像素填充。列中的第二个子项(也是文本)显示为灰色。

Expand Down

0 comments on commit 14c41cf

Please sign in to comment.