Fixed inventory items photo thumbnail issue

This commit is contained in:
2026-09-01 07:44:23 +05:30
parent bfe0c1efbd
commit 3a5e812947
6 changed files with 130 additions and 22 deletions

View File

@@ -21,6 +21,7 @@ class InventoryItem {
final int? vendorId;
final int? branchId;
final String? purchaseRef;
final String? photoUrl;
final String? status;
final DateTime? createdAt;
@@ -47,6 +48,7 @@ class InventoryItem {
this.vendorId,
this.branchId,
this.purchaseRef,
this.photoUrl,
this.status,
this.createdAt,
});
@@ -75,6 +77,7 @@ class InventoryItem {
vendorId: json['vendorId'],
branchId: json['branchId'],
purchaseRef: json['purchaseRef'],
photoUrl: json['photoUrl'] ?? json['photo_url'],
status: json['status'],
createdAt: json['createdAt'] != null ? DateTime.parse(json['createdAt']) : null,
);