-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d7552fd
commit c3a4961
Showing
2 changed files
with
18 additions
and
74 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,48 @@ | ||
# FlutterSample | ||
|
||
[中文版](./README-zh-CN.md) | ||
## 用法 | ||
|
||
## Usage | ||
|
||
1. Clone respository to your local | ||
1. 拷贝仓库代码到你本地设备 | ||
|
||
``` | ||
git clone https://github.com/nesger/FlutterSample.git | ||
``` | ||
|
||
2. Import project to Android Studio | ||
3. Switch to the corresponding branch | ||
4. Switch directory to flutter module | ||
2. 将项目导入到 Android Studio | ||
3. 切换到对应分支 | ||
4. 进入 flutter module 所在目录 | ||
|
||
``` | ||
cd sub/my_flutter/ | ||
``` | ||
|
||
5. run | ||
5. 执行下面命令 | ||
|
||
``` | ||
flutter packages get | ||
``` | ||
|
||
6. run | ||
6. 运行 | ||
|
||
``` | ||
flutter run | ||
``` | ||
|
||
## Branch | ||
|
||
**feature/main_template** | ||
## 分支 | ||
|
||
main.dart route template | ||
**feature/main_template:**main.dart 路由模板 | ||
|
||
**feature/ui-refresh-one:** | ||
Direct layout | ||
**feature/page_transition:**界面切换动画 DIY | ||
|
||
![](./ext_res/ui-refresh-one.png) | ||
<hr/> | ||
|
||
**feature/ui-refresh-two:** | ||
Two widget combinations:Expanded Widget + Column Widget | ||
**PlatformChannel 相关分支** | ||
|
||
![](./ext_res/ui-refresh-two.png) | ||
**feature/event_channel:**EventChannel 使用,实现原生到 Flutter 的通信 **feature/method_channel_reverse:**MethodChannel 使用,实现 Android 到 Flutter 的通信 **feature/method_channel:**MethodChannel 使用,实现 Flutter 到原生的通信 | ||
|
||
**feature/ui-refresh-three:** | ||
Column Widget + mainAxisAlignment attr | ||
<hr/> | ||
|
||
![](./ext_res/ui-refresh-three.png) | ||
**布局刷新居中显示示例** | ||
**feature/ui-refresh-one:**直接布局 | ||
**feature/ui-refresh-two:**两个 Widget 组合:Expanded Widget + Column Widget | ||
**feature/ui-refresh-three:**Column Widget + mainAxisAlignment 属性 |