Show "Reset Install Status" button on track-only apps

This commit is contained in:
Imran Remtulla
2023-04-28 22:45:38 -04:00
parent ce44e200a5
commit 4a07cf9951
3 changed files with 7 additions and 4 deletions

View File

@@ -21,7 +21,7 @@ import 'package:easy_localization/src/easy_localization_controller.dart';
// ignore: implementation_imports // ignore: implementation_imports
import 'package:easy_localization/src/localization.dart'; import 'package:easy_localization/src/localization.dart';
const String currentVersion = '0.11.35'; const String currentVersion = '0.11.36';
const String currentReleaseTag = const String currentReleaseTag =
'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES 'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES

View File

@@ -312,7 +312,10 @@ class _AppPageState extends State<AppPage> {
app!.app.installedVersion = null; app!.app.installedVersion = null;
appsProvider.saveApps([app.app]); appsProvider.saveApps([app.app]);
}, },
child: Text(tr('resetInstallStatus'))); child: Text(
tr('resetInstallStatus'),
textAlign: TextAlign.center,
));
getInstallOrUpdateButton() => TextButton( getInstallOrUpdateButton() => TextButton(
onPressed: (app?.app.installedVersion == null || onPressed: (app?.app.installedVersion == null ||
@@ -410,7 +413,7 @@ class _AppPageState extends State<AppPage> {
tooltip: tr('more')), tooltip: tr('more')),
const SizedBox(width: 16.0), const SizedBox(width: 16.0),
Expanded( Expanded(
child: !isVersionDetectionStandard && child: (!isVersionDetectionStandard || trackOnly) &&
app?.app.installedVersion != null && app?.app.installedVersion != null &&
app?.app.installedVersion == app?.app.installedVersion ==
app?.app.latestVersion app?.app.latestVersion

View File

@@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts # In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix. # of the product and file versions while build-number is used as the build suffix.
version: 0.11.35+157 # When changing this, update the tag in main() accordingly version: 0.11.36+158 # When changing this, update the tag in main() accordingly
environment: environment:
sdk: '>=2.18.2 <3.0.0' sdk: '>=2.18.2 <3.0.0'