feat: update app icon

This commit is contained in:
2026-10-09 22:28:49 +02:00
parent fc607cb7bd
commit 489896305d
14 changed files with 155 additions and 54 deletions
+22
View File
@@ -85,12 +85,32 @@ class SyncResponse {
}
}
/// One line on a tab as shown in the dashboard, e.g. "10× Cola".
class SnapshotTabItem {
final String productName;
final int quantity;
final int unitPriceInCents;
const SnapshotTabItem({
required this.productName,
required this.quantity,
required this.unitPriceInCents,
});
Map<String, dynamic> toJson() => {
'productName': productName,
'quantity': quantity,
'unitPriceInCents': unitPriceInCents,
};
}
class SnapshotTab {
final String id;
final String customerName;
final int version;
final int totalInCents;
final int itemCount;
final List<SnapshotTabItem> items;
const SnapshotTab({
required this.id,
@@ -98,6 +118,7 @@ class SnapshotTab {
required this.version,
required this.totalInCents,
required this.itemCount,
this.items = const [],
});
Map<String, dynamic> toJson() => {
@@ -106,6 +127,7 @@ class SnapshotTab {
'version': version,
'totalInCents': totalInCents,
'itemCount': itemCount,
'items': items.map((item) => item.toJson()).toList(),
};
}