veilidchat/lib/tools/package_info.dart
2024-06-11 21:27:20 -04:00

15 lines
486 B
Dart

import 'package:package_info_plus/package_info_plus.dart';
String packageInfoAppName = '';
String packageInfoPackageName = '';
String packageInfoVersion = '';
String packageInfoBuildNumber = '';
Future<void> initPackageInfo() async {
final packageInfo = await PackageInfo.fromPlatform();
packageInfoAppName = packageInfo.appName;
packageInfoPackageName = packageInfo.packageName;
packageInfoVersion = packageInfo.version;
packageInfoBuildNumber = packageInfo.buildNumber;
}