Showing
2 changed files
with
7 additions
and
5 deletions
| @@ -11,14 +11,14 @@ if (flutterRoot == null) { | @@ -11,14 +11,14 @@ if (flutterRoot == null) { | ||
| 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") | 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") |
| 12 | } | 12 | } |
| 13 | 13 | ||
| 14 | -def flutterVersionCode = "294" | 14 | +def flutterVersionCode = "295" |
| 15 | if (flutterVersionCode == null) { | 15 | if (flutterVersionCode == null) { |
| 16 | - flutterVersionCode = '294' | 16 | + flutterVersionCode = '295' |
| 17 | } | 17 | } |
| 18 | 18 | ||
| 19 | -def flutterVersionName = "2.9.4" | 19 | +def flutterVersionName = "2.9.5" |
| 20 | if (flutterVersionName == null) { | 20 | if (flutterVersionName == null) { |
| 21 | - flutterVersionName = '2.9.4' | 21 | + flutterVersionName = '2.9.5' |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | apply plugin: 'com.android.application' | 24 | apply plugin: 'com.android.application' |
| @@ -118,7 +118,7 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { | @@ -118,7 +118,7 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { | ||
| 118 | newVersion = true; | 118 | newVersion = true; |
| 119 | }); | 119 | }); |
| 120 | // updateModel.showUpdateDialog(context, version); | 120 | // updateModel.showUpdateDialog(context, version); |
| 121 | - }); | 121 | + }, showToast: false); |
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | @override | 124 | @override |
| @@ -387,6 +387,8 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { | @@ -387,6 +387,8 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { | ||
| 387 | if (newVersion) { | 387 | if (newVersion) { |
| 388 | UpdateModelMy updateModel = new UpdateModelMy(); | 388 | UpdateModelMy updateModel = new UpdateModelMy(); |
| 389 | updateModel.showUpdateDialog(context, _version); | 389 | updateModel.showUpdateDialog(context, _version); |
| 390 | + } else { | ||
| 391 | + Utils.showToast("当前已是最新版本"); | ||
| 390 | } | 392 | } |
| 391 | }, | 393 | }, |
| 392 | child: Container( | 394 | child: Container( |
-
Please register or login to post a comment