fixed version counter "v?"

This commit is contained in:
CroatianHusky 2023-06-10 10:38:26 +02:00
parent 06016514e5
commit 261c94e9bb
No known key found for this signature in database
GPG Key ID: E9CDDF86D7F128BC

View File

@ -918,6 +918,7 @@ class _SettingsScreenState extends State<SettingsScreen>
child: Text("v${release.data!['version']}"),
);
} else {
String envAppVer = const String.fromEnvironment("APPVER", defaultValue: "?");
return DefaultTextStyle(
style: Theme.of(context)
.textTheme
@ -927,7 +928,7 @@ class _SettingsScreenState extends State<SettingsScreen>
color: AppColors.of(context)
.text
.withOpacity(0.65)),
child: const Text("v?"),
child: Text("v$envAppVer"),
);
}
},