forked from yaso_meth/mih-project
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,
|
||||
),
|
||||
),
|
||||
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(),
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user