new plus button

This commit is contained in:
davmar
2026-08-31 09:40:38 +02:00
parent 3b698a3667
commit 92581e6d55
17 changed files with 1336 additions and 152 deletions
+5 -1
View File
@@ -3,7 +3,7 @@ library;
import 'dart:convert';
const int kBackupVersion = 2;
const int kBackupVersion = 3;
class BackupDocument {
const BackupDocument({
@@ -17,6 +17,7 @@ class BackupDocument {
required this.shoppingLists,
required this.shoppingListItems,
required this.images,
this.shopTags = const [],
});
final int version;
@@ -26,6 +27,7 @@ class BackupDocument {
final List<Map<String, Object?>> products;
final List<Map<String, Object?>> shops;
final List<Map<String, Object?>> shopItems;
final List<Map<String, Object?>> shopTags;
final List<Map<String, Object?>> shoppingLists;
final List<Map<String, Object?>> shoppingListItems;
final Map<String, String> images;
@@ -39,6 +41,7 @@ class BackupDocument {
'products': products,
'shops': shops,
'shopItems': shopItems,
'shopTags': shopTags,
'shoppingLists': shoppingLists,
'shoppingListItems': shoppingListItems,
'images': images,
@@ -66,6 +69,7 @@ class BackupDocument {
products: _maps(decoded['products']),
shops: _maps(decoded['shops']),
shopItems: _maps(decoded['shopItems']),
shopTags: _maps(decoded['shopTags']),
shoppingLists: _maps(decoded['shoppingLists']),
shoppingListItems: _maps(decoded['shoppingListItems']),
images: _strings(decoded['images']),