Skip to content

Commit

Permalink
Merge pull request #256 from dreautall/page_categories
Browse files Browse the repository at this point in the history
Category Page
  • Loading branch information
dreautall authored Jan 21, 2024
2 parents 0913b1c + 363e348 commit 76e12be
Show file tree
Hide file tree
Showing 10 changed files with 1,084 additions and 3 deletions.
14 changes: 14 additions & 0 deletions lib/extensions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -447,3 +447,17 @@ extension BillAmountAvg on Bill {
return (amountMin + amountMax) / 2;
}
}

class CategoryWithSum extends Category {
CategoryWithSum({
super.createdAt,
super.updatedAt,
required super.name,
super.notes,
super.spent,
super.earned,
});

double sumSpent = 0;
double sumEarned = 0;
}
44 changes: 44 additions & 0 deletions lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,42 @@
}
}
},
"categoryDeleteConfirm": "Are you sure you want to delete this category? All transactions in this category will have no category anymore.",
"@categoryDeleteConfirm": {
"description": "Confirmation text to delete category"
},
"categoryErrorLoading": "Error loading categories..",
"@categoryErrorLoading": {
"description": "Generic error message when categories can't be loaded (shouldn't occur)"
},
"categoryTitleAdd": "Add Category",
"@categoryTitleAdd": {
"description": "Title for Dialog: Add Category"
},
"categoryMonthNext": "Next Month",
"@categoryMonthNext": {
"description": "Button title to view overview for next month"
},
"categoryMonthPrev": "Previous Month",
"@categoryMonthPrev": {
"description": "Button title to view overview for previous month"
},
"categoryTitleDelete": "Delete Category",
"@categoryTitleDelete": {
"description": "Title for Dialog: Delete Category"
},
"categoryTitleEdit": "Edit Category",
"@categoryTitleEdit": {
"description": "Title for Dialog: Edit Category"
},
"catOther": "Other",
"@catOther": {
"description": "Category description for summary category 'Other'"
},
"catNone": "<no category>",
"@catNone": {
"description": "Placeholder when no category has been set."
},
"errorAPIInvalidResponse": "Invalid Response from API: {message}",
"@errorAPIInvalidResponse": {
"description": "Invalid API response error",
Expand Down Expand Up @@ -179,6 +211,10 @@
"@generalDismiss": {
"description": "Dismiss window/dialog without action"
},
"generalEarned": "Earned",
"@generalEarned": {
"description": "(Amount) Earned"
},
"generalError": "Error",
"@generalError": {
"description": "Error (title in dialogs etc.)"
Expand Down Expand Up @@ -211,6 +247,10 @@
"@generalReset": {
"description": "Reset something (i.e. set filters)"
},
"generalSpent": "Spent",
"@generalSpent": {
"description": "(Amount) Spent"
},
"generalSum": "Sum",
"@generalSum": {
"description": "(Mathematical) Sum"
Expand Down Expand Up @@ -515,6 +555,10 @@
"@navigationAccounts": {
"description": "Navigation Label: Accounts Page"
},
"navigationCategories": "Categories",
"@navigationCategories": {
"description": "Navigation Label: Categories"
},
"navigationMain": "Main Dashboard",
"@navigationMain": {
"description": "Navigation Label: Main Dashboard"
Expand Down
Loading

0 comments on commit 76e12be

Please sign in to comment.