fix: deps and auto-update check
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user