mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Check token info and update to new info
This commit is contained in:
@@ -1 +1,10 @@
|
||||
export './device_other.dart' if (dart.library.html) './device_web.dart';
|
||||
import 'package:package_info_plus/package_info_plus.dart';
|
||||
|
||||
Future<String?> get clientVersion async {
|
||||
try {
|
||||
return (await PackageInfo.fromPlatform()).version;
|
||||
} catch (_) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user