TF-1709 Implement sortOrder

(cherry picked from commit b3e5844bf37c692f763ccbf66bcbfb63c75d2d9f)
This commit is contained in:
hieubt
2023-11-11 00:43:14 +07:00
committed by Dat Vu
parent f0713f3789
commit 34caadc2b7
9 changed files with 73 additions and 34 deletions
@@ -8,11 +8,13 @@ import 'package:pointer_interceptor/pointer_interceptor.dart';
import 'package:tmail_ui_user/features/mailbox_dashboard/presentation/model/search/email_sort_order_type.dart';
import 'package:tmail_ui_user/features/mailbox_dashboard/presentation/styles/sort_by_drop_down_style.dart';
typedef OnSortOrderSelected = void Function(EmailSortOrderType?);
class SortByDropDownButton extends StatelessWidget {
final ImagePaths imagePaths;
final EmailSortOrderType? sortOrderSelected;
final Function(EmailSortOrderType?)? onSortOrderSelected;
final OnSortOrderSelected? onSortOrderSelected;
const SortByDropDownButton({
Key? key,
@@ -68,7 +68,7 @@ class SearchInputFormWidget extends StatelessWidget with AppLoaderMixin {
debounceDuration: const Duration(milliseconds: 300),
listActionButton: QuickSearchFilter.values,
actionButtonBuilder: (context, filterAction) {
if (filterAction is QuickSearchFilter) {
if (filterAction is QuickSearchFilter && filterAction != QuickSearchFilter.sortBy) {
return buildListButtonForQuickSearchForm(context, filterAction);
} else {
return const SizedBox.shrink();