feat: add sorting by category for checklist

This commit is contained in:
2026-04-11 23:30:30 +03:00
parent 4d0c28f263
commit 5ae3afcd41
3 changed files with 9 additions and 0 deletions

View File

@@ -661,6 +661,11 @@ class SortChecklistsMessages {
/// ```
String get nameZA => """Name ZA""";
/// ```dart
/// "By category"
/// ```
String get category => """By category""";
/// ```dart
/// "Custom"
/// ```
@@ -1231,6 +1236,7 @@ Please complete login in your browser.""",
"""checklists.sort.oldestFirst""": """Oldest first""",
"""checklists.sort.nameAZ""": """Name AZ""",
"""checklists.sort.nameZA""": """Name ZA""",
"""checklists.sort.category""": """By category""",
"""checklists.sort.custom""": """Custom""",
"""notesWall.noNotes""": """No notes yet.""",
"""notesWall.failedToLoad""": """Failed to load notes.""",

View File

@@ -120,6 +120,7 @@ checklists:
oldestFirst: Oldest first
nameAZ: "Name A\u2013Z"
nameZA: "Name Z\u2013A"
category: By category
custom: Custom
notesWall:

View File

@@ -17,6 +17,7 @@ class ChecklistSortButton extends StatelessWidget {
'oldest',
'name_asc',
'name_desc',
'category',
'custom',
];
@@ -25,6 +26,7 @@ class ChecklistSortButton extends StatelessWidget {
'oldest' => m.checklists.sort.oldestFirst,
'name_asc' => m.checklists.sort.nameAZ,
'name_desc' => m.checklists.sort.nameZA,
'category' => m.checklists.sort.category,
'custom' => m.checklists.sort.custom,
_ => key,
};