mcy_new #1
|
|
@ -1,3 +1,4 @@
|
||||||
|
import 'dart:io';
|
||||||
import 'package:auto_updater/auto_updater.dart';
|
import 'package:auto_updater/auto_updater.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
|
|
@ -29,10 +30,12 @@ void main() async {
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
|
|
||||||
// Windows
|
// Windows
|
||||||
String feedURL = '${RequestConfig.imgUrl}infra-app/job/3/appcast.xml';
|
if(Platform.isWindows){
|
||||||
await autoUpdater.setFeedURL(feedURL);
|
String feedURL = '${RequestConfig.imgUrl}infra-app/job/3/appcast.xml';
|
||||||
await autoUpdater.checkForUpdates();
|
await autoUpdater.setFeedURL(feedURL);
|
||||||
await autoUpdater.setScheduledCheckInterval(3600);
|
await autoUpdater.checkForUpdates();
|
||||||
|
await autoUpdater.setScheduledCheckInterval(3600);
|
||||||
|
}
|
||||||
|
|
||||||
SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
|
SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
|
||||||
statusBarColor: Colors.transparent, //状态栏背景颜色
|
statusBarColor: Colors.transparent, //状态栏背景颜色
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue