1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 00:05:16 +00:00

Display current build version on startup screen

This commit is contained in:
2021-02-20 08:58:03 +01:00
parent 2519adeef4
commit 54e37b3e69
5 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,16 @@
import 'package:package_info/package_info.dart';
/// Application version helper
///
/// @author Pierre Hubert
class VersionHelper {
static PackageInfo _info;
static Future<void> ensureLoaded() async {
_info = await PackageInfo.fromPlatform();
}
/// Get current version information
static PackageInfo get info => _info;
}