Skip to content

Commit

Permalink
feat: automatically sort in ascending order when sorting by title
Browse files Browse the repository at this point in the history
  • Loading branch information
maelchiotti committed Mar 2, 2024
1 parent 2d34a30 commit 20fa5de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/common/navigation/app_bars/search_sort_app_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ class _SearchAppBarState extends ConsumerState<SearchSortAppBar> {
trailing: Checkbox(
value: sortAscending,
onChanged: (ascending) {
// Circumvent the normal PopupMenuButton behavior to use the second parameter or _sort
_sort(ascending: ascending);
context.pop();
},
Expand Down

0 comments on commit 20fa5de

Please sign in to comment.