Merge pull request #138 from yaso-meth/QOL--MIH-Version-number
QOL--MIH-Version-number
This commit is contained in:
@@ -625,6 +625,13 @@ class _MihInfoState extends State<MihInfo> {
|
|||||||
fontSize: 30,
|
fontSize: 30,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Text(
|
||||||
|
"MIH App Version: ${MzanziInnovationHub.of(context)!.theme.getLatestVersion()}",
|
||||||
|
style: const TextStyle(
|
||||||
|
fontWeight: FontWeight.normal,
|
||||||
|
fontSize: 15,
|
||||||
|
),
|
||||||
|
),
|
||||||
const Padding(
|
const Padding(
|
||||||
padding: EdgeInsets.symmetric(vertical: 10.0),
|
padding: EdgeInsets.symmetric(vertical: 10.0),
|
||||||
child: Divider(),
|
child: Divider(),
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ class MihTheme {
|
|||||||
late String loadingAssetText;
|
late String loadingAssetText;
|
||||||
late TargetPlatform platform;
|
late TargetPlatform platform;
|
||||||
bool kIsWeb = const bool.fromEnvironment('dart.library.js_util');
|
bool kIsWeb = const bool.fromEnvironment('dart.library.js_util');
|
||||||
|
String latestVersion = "1.1.2";
|
||||||
// Options:-
|
// Options:-
|
||||||
// f3f9d2 = Cream
|
// f3f9d2 = Cream
|
||||||
// f0f0c9 = cream2
|
// f0f0c9 = cream2
|
||||||
@@ -104,6 +105,10 @@ class MihTheme {
|
|||||||
mode;
|
mode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String getLatestVersion() {
|
||||||
|
return latestVersion;
|
||||||
|
}
|
||||||
|
|
||||||
ThemeData getThemeData() {
|
ThemeData getThemeData() {
|
||||||
return getData();
|
return getData();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user