feat: toast for disabled updates.

This commit is contained in:
Aunali321
2022-10-19 16:32:54 +05:30
parent 63b2d8e0bd
commit 84a788fd9e
3 changed files with 14 additions and 12 deletions

View File

@ -45,17 +45,14 @@ class AvailableUpdatesCard extends StatelessWidget {
physics: const NeverScrollableScrollPhysics(),
children: apps
.map((app) => ApplicationItem(
icon: app.icon,
name: app.name,
patchDate: app.patchDate,
changelog: app.changelog,
isUpdatableApp: true,
//TODO: Find a better way to do update functionality
onPressed: () {}
// () =>
// locator<HomeViewModel>().navigateToPatcher(
// app,
// ),
icon: app.icon,
name: app.name,
patchDate: app.patchDate,
changelog: app.changelog,
isUpdatableApp: true,
//TODO: Find a better way to do update functionality
onPressed: () =>
locator<HomeViewModel>().updatesAreDisabled(),
))
.toList(),
);