mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2024-10-01 06:55:46 -04:00
15 lines
486 B
Dart
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;
|
|
}
|