fix: formatting

This commit is contained in:
2026-07-29 01:42:34 +02:00
parent 521c8f8c4e
commit 50e6fca9d1
32 changed files with 501 additions and 575 deletions
+3 -9
View File
@@ -18,17 +18,11 @@ class BarTab {
});
int get totalInCents {
return items.fold<int>(
0,
(total, item) => total + item.lineTotalInCents,
);
return items.fold<int>(0, (total, item) => total + item.lineTotalInCents);
}
int get itemCount {
return items.fold<int>(
0,
(total, item) => total + item.quantity,
);
return items.fold<int>(0, (total, item) => total + item.quantity);
}
String get formattedTotal {
@@ -36,4 +30,4 @@ class BarTab {
}
bool get isOpen => status == 'open';
}
}
+1 -1
View File
@@ -24,4 +24,4 @@ class ClosedTab {
String get formattedTotal =>
NumberFormat.simpleCurrency().format(totalInCents / 100);
}
}
+1 -1
View File
@@ -16,4 +16,4 @@ class ClosedTabItem {
});
int get lineTotalInCents => quantity * unitPriceInCents;
}
}
+1 -1
View File
@@ -48,4 +48,4 @@ class Product {
active: active ?? this.active,
);
}
}
}
+3 -9
View File
@@ -4,15 +4,9 @@ class AppSettings {
final bool pinRequired;
final AppThemeMode themeMode;
const AppSettings({
required this.pinRequired,
required this.themeMode,
});
const AppSettings({required this.pinRequired, required this.themeMode});
AppSettings copyWith({
bool? pinRequired,
AppThemeMode? themeMode,
}) {
AppSettings copyWith({bool? pinRequired, AppThemeMode? themeMode}) {
return AppSettings(
pinRequired: pinRequired ?? this.pinRequired,
themeMode: themeMode ?? this.themeMode,
@@ -23,4 +17,4 @@ class AppSettings {
pinRequired: false,
themeMode: AppThemeMode.system,
);
}
}
+1 -1
View File
@@ -24,4 +24,4 @@ class TabItem {
String get formattedUnitPrice {
return '${(unitPriceInCents / 100).toStringAsFixed(2)}';
}
}
}