Commit edff834da1cec19104e1c79fef48f8763123da85

Authored by wdn127929
1 parent f0738df3

话机

@@ -18,19 +18,19 @@ if (flutterRoot == null) { @@ -18,19 +18,19 @@ if (flutterRoot == null) {
18 18
19 19
20 20
21 -def flutterVersionCode = "530" 21 +def flutterVersionCode = "100"
22 if (flutterVersionCode == null) { 22 if (flutterVersionCode == null) {
23 - flutterVersionCode = '530' 23 + flutterVersionCode = '100'
24 24
25 25
26 26
27 } 27 }
28 28
29 29
30 -def flutterVersionName = "5.3.0" 30 +def flutterVersionName = "1.0.0"
31 31
32 if (flutterVersionName == null) { 32 if (flutterVersionName == null) {
33 - flutterVersionName = '5.3.0' 33 + flutterVersionName = '1.0.0'
34 34
35 35
36 } 36 }
@@ -267,8 +267,8 @@ class MyAppState extends State<MyApp> { @@ -267,8 +267,8 @@ class MyAppState extends State<MyApp> {
267 Widget build(BuildContext context) { 267 Widget build(BuildContext context) {
268 // TODO: implement build 268 // TODO: implement build
269 return ScreenUtilInit( 269 return ScreenUtilInit(
270 - designSize: const Size(750, 1334),  
271 - // designSize: const Size(900, 1200),//话机尺寸,不能按照屏幕尺寸,大概调整合适 270 + // designSize: const Size(750, 1334),
  271 + designSize: const Size(900, 1200),//话机尺寸,不能按照屏幕尺寸,大概调整合适
272 272
273 minTextAdapt: true, 273 minTextAdapt: true,
274 splitScreenMode: true, 274 splitScreenMode: true,
@@ -286,7 +286,7 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver { @@ -286,7 +286,7 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver {
286 } 286 }
287 if (widget.initialIndex == 0 || 287 if (widget.initialIndex == 0 ||
288 widget.initialIndex == 1 && needRefreshTemp == false) return; 288 widget.initialIndex == 1 && needRefreshTemp == false) return;
289 - _initNotification(); 289 + // _initNotification();
290 Future.delayed(Duration(minutes: 3), () { 290 Future.delayed(Duration(minutes: 3), () {
291 //30000 291 //30000
292 // ContactModel.getInstance().uploadLocalContact(context); 292 // ContactModel.getInstance().uploadLocalContact(context);
@@ -316,6 +316,7 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver { @@ -316,6 +316,7 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver {
316 316
317 getSellerVersion() async { 317 getSellerVersion() async {
318 await collectStoreProvider.getSellerVersion(context,showLoading: false); 318 await collectStoreProvider.getSellerVersion(context,showLoading: false);
  319 +
319 if (Constant.normalApp) { 320 if (Constant.normalApp) {
320 _version(); 321 _version();
321 } else { 322 } else {
@@ -328,6 +329,9 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver { @@ -328,6 +329,9 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver {
328 _version(); 329 _version();
329 } 330 }
330 } 331 }
  332 + if (widget.initialIndex == 0 ||
  333 + widget.initialIndex == 1 && needRefreshTemp == false) return;
  334 + _initNotification();
331 } 335 }
332 336
333 _version() { 337 _version() {