11 lines
284 B
Dart
11 lines
284 B
Dart
import 'package:package_info_plus/package_info_plus.dart';
|
|
|
|
class AppVersion {
|
|
static String version = "";
|
|
|
|
static Future<void> init() async {
|
|
PackageInfo packageInfo = await PackageInfo.fromPlatform();
|
|
version = '${packageInfo.version}+${packageInfo.buildNumber}';
|
|
}
|
|
}
|