Check token info and update to new info

This commit is contained in:
2024-02-02 16:09:43 +08:00
parent cd31d117af
commit 6476d7bf8c
10 changed files with 141 additions and 14 deletions

View File

@@ -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;
}
}