fix: deps and auto-update check

This commit is contained in:
2026-07-27 22:15:22 +02:00
parent 77c1747b40
commit 1d687235f4
5 changed files with 107 additions and 158 deletions
+13 -13
View File
@@ -57,19 +57,19 @@ class ProductListViewModel extends ChangeNotifier {
notifyListeners();
}
try {
_products = await productService.getProducts();
debugPrint(
_products.map((p) => '${p.name}: ${p.stockQuantity}').join('\n'),
);
} catch (_) {
_errorMessage = 'Could not load products.';
} finally {
_hasLoaded = true;
_isLoading = false;
notifyListeners();
}
// try {
// _products = await productService.getProducts();
//
// debugPrint(
// _products.map((p) => '${p.name}: ${p.stockQuantity}').join('\n'),
// );
// } catch (_) {
// _errorMessage = 'Could not load products.';
// } finally {
// _hasLoaded = true;
// _isLoading = false;
// notifyListeners();
// }
}
Future<void> addProduct({