Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove unimplemented features #1061

Merged
merged 10 commits into from
Aug 3, 2023
Next Next commit
feat: remove update card
  • Loading branch information
validcube committed Jul 29, 2023
commit 2d3688775750b4a3e9e3dbef033901e6ed4e8208
2 changes: 0 additions & 2 deletions assets/i18n/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,11 @@
"updatesSubtitle": "Updates",
"patchedSubtitle": "Patched applications",

"updatesAvailable": "Updates available",
"noUpdates": "No updates available",

"WIP": "Work in progress...",

"noInstallations": "No patched applications installed",
"installed": "Installed",
"installUpdate": "Continue to install the update?",

"updateDialogTitle": "Update Manager",
Expand Down
69 changes: 2 additions & 67 deletions lib/ui/views/home/home_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,73 +63,8 @@ class HomeView extends StatelessWidget {
style: Theme.of(context).textTheme.titleLarge,
),
),
const SizedBox(height: 8),
Row(
children: <Widget>[
ActionChip(
avatar: const Icon(Icons.grid_view),
label: I18nText('homeView.installed'),
side: BorderSide(
color: model.showUpdatableApps
? Theme.of(context).colorScheme.outline
: Theme.of(context)
.colorScheme
.secondaryContainer,
width: model.showUpdatableApps ? 1 : 1,
),
backgroundColor: model.showUpdatableApps
? Theme.of(context).colorScheme.background
: Theme.of(context)
.colorScheme
.secondaryContainer,
onPressed: () {
model.toggleUpdatableApps(false);
},
),
const SizedBox(width: 10),
ActionChip(
avatar: const Icon(Icons.update),
label: I18nText('homeView.updatesAvailable'),
side: BorderSide(
color: !model.showUpdatableApps
? Theme.of(context).colorScheme.outline
: Theme.of(context)
.colorScheme
.secondaryContainer,
width: !model.showUpdatableApps ? 1 : 1,
),
backgroundColor: !model.showUpdatableApps
? Theme.of(context).colorScheme.background
: Theme.of(context)
.colorScheme
.secondaryContainer,
onPressed: () {
model.toggleUpdatableApps(true);
},
),
],
),
const SizedBox(height: 14),
PageTransitionSwitcher(
transitionBuilder:
(child, primaryAnimation, secondaryAnimation) {
return FadeThroughTransition(
animation: primaryAnimation,
secondaryAnimation: secondaryAnimation,
fillColor: Colors.transparent,
child: child,
);
},
layoutBuilder: (entries) {
return Stack(
alignment: Alignment.topCenter,
children: entries,
);
},
child: model.showUpdatableApps
? AvailableUpdatesCard()
: InstalledAppsCard(),
),
const SizedBox(height: 10),
InstalledAppsCard(),
],
),
),
Expand Down