mirror of
https://github.com/qinglong-app/qinglong_app.git
synced 2025-10-09 16:48:19 +08:00
Update update_utils.dart
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import 'dart:io';
|
||||
import 'dart:math';
|
||||
|
||||
import 'package:dio/dio.dart';
|
||||
@@ -14,6 +15,9 @@ import '../main.dart';
|
||||
class UpdateUtils {
|
||||
Future<String?> checkUpdate([bool remind = false]) async {
|
||||
try {
|
||||
if (!Platform.isAndroid) {
|
||||
return null;
|
||||
}
|
||||
PackageInfo packageInfo = await PackageInfo.fromPlatform();
|
||||
|
||||
String version = packageInfo.version;
|
||||
|
||||
Reference in New Issue
Block a user