mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2024-12-18 04:24:29 -05: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;
|
||
|
}
|