Implemented settings, new scan, enhanced UI/UX

This commit is contained in:
Dennis Nemec
2025-11-04 16:52:39 +01:00
parent b19a6e1cd4
commit 7ea9108f62
79 changed files with 3306 additions and 566 deletions

View File

@ -135,7 +135,7 @@ class DeliveryOption {
if (value.isEmpty) {
return false;
} else {
return bool.parse(value);
return value == "0" ? false : true;
}
} else {
if (value.isEmpty) {
@ -161,7 +161,7 @@ class DeliveryOption {
}
}
class Delivery {
class Delivery implements Comparable<Delivery> {
Delivery({
required this.customer,
required this.id,
@ -208,6 +208,11 @@ class Delivery {
Payment payment;
List<DeliveryOption> options;
@override
int compareTo(Delivery other) {
return customer.name.compareTo(other.customer.name);
}
Delivery copyWith({
Customer? customer,
String? id,