fixed some issues and added label and, or capability

This commit is contained in:
davmar
2026-09-10 22:45:25 +02:00
parent b4d367f056
commit 6cc0de8945
14 changed files with 217 additions and 39 deletions
+7
View File
@@ -19,12 +19,19 @@ void main() {
expect(restored.flow, TxFlowFilter.expense);
expect(restored.monthOnly, isTrue);
expect(restored.labelIds, ['groceries']);
expect(restored.labelMatch, LabelMatchMode.and);
expect(restored.showAmountOut, isTrue);
expect(restored.showAmountIn, isFalse);
expect(restored.showCount, isTrue);
expect(restored.halfWidth, isFalse);
expect(restored.type, HomeWidgetType.stats);
final withOr = widget.copyWith(labelMatch: LabelMatchMode.or);
expect(
HomeFilterWidget.fromJson(withOr.toJson()).labelMatch,
LabelMatchMode.or,
);
final budget = widget.copyWith(
halfWidth: true,
type: HomeWidgetType.budget,