refactor: version presentation
This commit is contained in:
@@ -29,8 +29,7 @@ class AppUpdateNotifier extends _$AppUpdateNotifier with AppLogger {
|
||||
throw l;
|
||||
},
|
||||
(remote) {
|
||||
if (remote.version.replaceAll(".dev", "").compareTo(currentVersion) >
|
||||
0) {
|
||||
if (remote.version.compareTo(currentVersion) > 0) {
|
||||
loggy.info("new version available: $remote");
|
||||
return remote;
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ class NewVersionDialog extends HookConsumerWidget {
|
||||
style: theme.textTheme.bodySmall,
|
||||
),
|
||||
TextSpan(
|
||||
text: newVersion.fullVersion,
|
||||
text: newVersion.presentVersion,
|
||||
style: theme.textTheme.labelMedium,
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user