mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-06-06 05:49:03 +08:00
11 lines
277 B
Dart
11 lines
277 B
Dart
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;
|
|
}
|
|
}
|