Merge pull request #138 from yaso-meth/QOL--MIH-Version-number

QOL--MIH-Version-number
This commit is contained in:
yaso-meth
2025-04-15 12:34:41 +02:00
committed by GitHub
2 changed files with 12 additions and 0 deletions

View File

@@ -625,6 +625,13 @@ class _MihInfoState extends State<MihInfo> {
fontSize: 30,
),
),
Text(
"MIH App Version: ${MzanziInnovationHub.of(context)!.theme.getLatestVersion()}",
style: const TextStyle(
fontWeight: FontWeight.normal,
fontSize: 15,
),
),
const Padding(
padding: EdgeInsets.symmetric(vertical: 10.0),
child: Divider(),

View File

@@ -13,6 +13,7 @@ class MihTheme {
late String loadingAssetText;
late TargetPlatform platform;
bool kIsWeb = const bool.fromEnvironment('dart.library.js_util');
String latestVersion = "1.1.2";
// Options:-
// f3f9d2 = Cream
// f0f0c9 = cream2
@@ -104,6 +105,10 @@ class MihTheme {
mode;
}
String getLatestVersion() {
return latestVersion;
}
ThemeData getThemeData() {
return getData();
}