refactor: version presentation

This commit is contained in:
problematicconsumer
2023-09-16 00:56:03 +03:30
parent c7f1bf6272
commit 3e91f96a75
6 changed files with 32 additions and 18 deletions

View File

@@ -25,7 +25,7 @@ class AboutPage extends HookConsumerWidget {
switch (next) {
case AsyncData(value: final remoteVersion?):
await NewVersionDialog(
appInfo.version,
appInfo.presentVersion,
remoteVersion,
canIgnore: false,
).show(context);
@@ -59,7 +59,7 @@ class AboutPage extends HookConsumerWidget {
),
const Gap(4),
Text(
"${t.about.version} ${appInfo.version}",
"${t.about.version} ${appInfo.presentVersion}",
),
],
),