Commit 0ba32b50313109947f91930ac6cb148768015845

Authored by wdn127929
1 parent 52d79c65

存酒电话11位数字&&下载好apk后提示安装页面

@@ -18,19 +18,19 @@ if (flutterRoot == null) { @@ -18,19 +18,19 @@ if (flutterRoot == null) {
18 18
19 19
20 20
21 -def flutterVersionCode = "528" 21 +def flutterVersionCode = "520"
22 if (flutterVersionCode == null) { 22 if (flutterVersionCode == null) {
23 - flutterVersionCode = '528' 23 + flutterVersionCode = '520'
24 24
25 25
26 26
27 } 27 }
28 28
29 29
30 -def flutterVersionName = "5.2.8" 30 +def flutterVersionName = "5.2.0"
31 31
32 if (flutterVersionName == null) { 32 if (flutterVersionName == null) {
33 - flutterVersionName = '5.2.8' 33 + flutterVersionName = '5.2.0'
34 34
35 35
36 } 36 }
@@ -138,6 +138,8 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver { @@ -138,6 +138,8 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver {
138 void initState() { 138 void initState() {
139 // TODO: implement initState 139 // TODO: implement initState
140 super.initState(); 140 super.initState();
  141 +
  142 +
141 LogUtil.v("home_initState"); 143 LogUtil.v("home_initState");
142 // CachedNetworkImage.evictFromCache( 144 // CachedNetworkImage.evictFromCache(
143 // 'https://qn.colorcun.com/template/heilanguodu-6.png'); 145 // 'https://qn.colorcun.com/template/heilanguodu-6.png');
@@ -160,6 +162,7 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver { @@ -160,6 +162,7 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver {
160 // needUpdate = false; 162 // needUpdate = false;
161 // // print(map['type']); 163 // // print(map['type']);
162 // } 164 // }
  165 +
163 166
164 WidgetsBinding.instance.addObserver(this); 167 WidgetsBinding.instance.addObserver(this);
165 168
@@ -2,6 +2,7 @@ import 'dart:convert'; @@ -2,6 +2,7 @@ import 'dart:convert';
2 2
3 import 'package:common_utils/common_utils.dart'; 3 import 'package:common_utils/common_utils.dart';
4 import 'package:flutter/material.dart'; 4 import 'package:flutter/material.dart';
  5 +import 'package:flutter/services.dart';
5 import 'package:flutter_screenutil/flutter_screenutil.dart'; 6 import 'package:flutter_screenutil/flutter_screenutil.dart';
6 import 'package:one_key/pages/my/store_wine_manage/create_wine_item_page.dart'; 7 import 'package:one_key/pages/my/store_wine_manage/create_wine_item_page.dart';
7 import 'package:one_key/widgets/MyDivider.dart'; 8 import 'package:one_key/widgets/MyDivider.dart';
@@ -175,7 +176,11 @@ class _CreateStoreWinePageState extends State<CreateStoreWinePage> { @@ -175,7 +176,11 @@ class _CreateStoreWinePageState extends State<CreateStoreWinePage> {
175 // focusNode: _phoneNode, 176 // focusNode: _phoneNode,
176 textAlign: TextAlign.right, 177 textAlign: TextAlign.right,
177 textAlignVertical: TextAlignVertical.center, 178 textAlignVertical: TextAlignVertical.center,
178 - 179 + inputFormatters: <TextInputFormatter>[
  180 + FilteringTextInputFormatter.allow(
  181 + RegExp(r'[0-9]')), //设置只允许输入数字
  182 + LengthLimitingTextInputFormatter(11) //限制长度
  183 + ],
179 // textAlignVertical: 184 // textAlignVertical:
180 // TextAlignVertical.center, 185 // TextAlignVertical.center,
181 decoration: InputDecoration( 186 decoration: InputDecoration(
@@ -60,6 +60,8 @@ class UpdateModelMy { @@ -60,6 +60,8 @@ class UpdateModelMy {
60 60
61 ///简单使用版本更新 61 ///简单使用版本更新
62 simpleUse(bool showiOSDialog, String url) async { 62 simpleUse(bool showiOSDialog, String url) async {
  63 +
  64 +
63 var result = true; 65 var result = true;
64 66
65 if (Platform.isAndroid) { 67 if (Platform.isAndroid) {
@@ -93,7 +95,9 @@ class UpdateModelMy { @@ -93,7 +95,9 @@ class UpdateModelMy {
93 'itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=1510697490', 95 'itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=1510697490',
94 // showiOSDialog: showiOSDialog, 96 // showiOSDialog: showiOSDialog,
95 ); 97 );
96 - AzhonAppUpdate.update(model).then((value) => print(value)); 98 + AzhonAppUpdate.update(model).then((value) {
  99 + print(value);
  100 + });
97 } 101 }
98 } 102 }
99 103
@@ -565,7 +565,7 @@ packages: @@ -565,7 +565,7 @@ packages:
565 name: flutter_app_update 565 name: flutter_app_update
566 url: "https://pub.flutter-io.cn" 566 url: "https://pub.flutter-io.cn"
567 source: hosted 567 source: hosted
568 - version: "3.0.4" 568 + version: "3.1.0"
569 flutter_blurhash: 569 flutter_blurhash:
570 dependency: transitive 570 dependency: transitive
571 description: 571 description:
@@ -183,7 +183,7 @@ dependencies: @@ -183,7 +183,7 @@ dependencies:
183 flutter_native_image: ^0.0.6+1 183 flutter_native_image: ^0.0.6+1
184 #更新apk 184 #更新apk
185 # flutter_app_update: ^0.0.2 185 # flutter_app_update: ^0.0.2
186 - flutter_app_update: ^3.0.4 186 + flutter_app_update: ^3.1.0
187 # android_package_manager: ^0.5.0 187 # android_package_manager: ^0.5.0
188 # flutter_app_update: ^1.0.0 188 # flutter_app_update: ^1.0.0
189 flutter_staggered_grid_view: ^0.4.1 189 flutter_staggered_grid_view: ^0.4.1