Skip to content

Commit

Permalink
README 文件修改
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanzengyu committed Apr 13, 2020
1 parent d7552fd commit c3a4961
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 74 deletions.
52 changes: 0 additions & 52 deletions README-zh-CN.md

This file was deleted.

40 changes: 18 additions & 22 deletions README.md
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 属性

0 comments on commit c3a4961

Please sign in to comment.