Skip to content

Commit 98ffb85

Browse files
committed
增加android的滑动返回
1 parent ddb1508 commit 98ffb85

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
### 编译运行流程
3939

40-
1、配置好Flutter开发环境(目前Flutter SDK 版本 v0.5.8 的 Tag ),可参阅 [【搭建环境】](https://flutterchina.club)
40+
1、配置好Flutter开发环境(目前Flutter SDK 版本 **v0.5.8** 的 Tag ),可参阅 [【搭建环境】](https://flutterchina.club)
4141

4242
2、clone代码,执行`Packages get`安装第三方包。(因为某些不可抗力原因,国内可能需要设置代理: [代理环境变量](https://flutterchina.club/setup-windows/))
4343

@@ -54,7 +54,7 @@
5454

5555
4、运行之前请注意下
5656

57-
>### 1、本地Flutter SDK 版本 v0.5.7 以上。2、pubspec.yaml 中的第三方包版本和 pubspec.lock 中的是否对应的上
57+
>### 1、本地Flutter SDK 版本 v0.5.8 以上。2、pubspec.yaml 中的第三方包版本和 pubspec.lock 中的是否对应的上
5858
5959

6060

lib/common/utils/CommonUtils.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class CommonUtils {
9090
static pushTheme(Store store, int index) {
9191
ThemeData themeData;
9292
List<Color> colors = getThemeListColor();
93-
themeData = new ThemeData(primarySwatch: colors[index]);
93+
themeData = new ThemeData(primarySwatch: colors[index], platform: TargetPlatform.iOS);
9494
store.dispatch(new RefreshThemeDataAction(themeData));
9595
}
9696

lib/main.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class FlutterReduxApp extends StatelessWidget {
3434
trendList: new List(),
3535
themeData: new ThemeData(
3636
primarySwatch: GSYColors.primarySwatch,
37+
platform: TargetPlatform.iOS//滑动返回
3738
),
3839
locale: Locale('zh', 'CH')),
3940
);

0 commit comments

Comments
 (0)