alaway show advanced search
This commit is contained in:
@@ -201,12 +201,6 @@ class AdvancedFilterController extends GetxController {
|
||||
hasAttachment.value = searchEmailFilter.hasAttachment;
|
||||
}
|
||||
|
||||
@override
|
||||
void onDone() {}
|
||||
|
||||
@override
|
||||
void onError(error) {}
|
||||
|
||||
@override
|
||||
void onClose() {
|
||||
subjectFilterInputController.dispose();
|
||||
|
||||
-1
@@ -272,7 +272,6 @@ class MailboxDashBoardController extends ReloadableController {
|
||||
_closeEmailDetailedView();
|
||||
}
|
||||
if (value.isEmpty){
|
||||
searchController.disableSearch();
|
||||
searchController.setEmailReceiveTimeType(null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -147,7 +147,7 @@ class SearchController extends BaseController {
|
||||
if (!hasFocus && (query == null || query.isEmpty) && isAdvancedSearchHasApply.isFalse) {
|
||||
updateFilterEmail(text: SearchQuery.initial());
|
||||
searchInputController.clear();
|
||||
cleanSearchFilter();
|
||||
cleanSearchFilter();
|
||||
searchFocus.unfocus();
|
||||
}
|
||||
});
|
||||
|
||||
+8
-1
@@ -36,6 +36,8 @@ class AdvancedSearchFilterFormBottomView
|
||||
colorButton: Colors.transparent,
|
||||
colorText: AppColor.colorMessageConfirmDialog,
|
||||
text: AppLocalizations.of(context).clearFilter,
|
||||
context: context,
|
||||
responsiveUtils: _responsiveUtils,
|
||||
),
|
||||
const SizedBox(width: 12),
|
||||
_buildButton(
|
||||
@@ -46,6 +48,8 @@ class AdvancedSearchFilterFormBottomView
|
||||
colorButton: AppColor.primaryColor,
|
||||
colorText: AppColor.primaryLightColor,
|
||||
text: AppLocalizations.of(context).search,
|
||||
context: context,
|
||||
responsiveUtils: _responsiveUtils,
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -73,6 +77,8 @@ class AdvancedSearchFilterFormBottomView
|
||||
required Color colorText,
|
||||
required String text,
|
||||
required VoidCallback onAction,
|
||||
required BuildContext context,
|
||||
required ResponsiveUtils responsiveUtils,
|
||||
}) {
|
||||
return InkWell(
|
||||
onTap: onAction,
|
||||
@@ -81,7 +87,8 @@ class AdvancedSearchFilterFormBottomView
|
||||
},
|
||||
child: Container(
|
||||
height: 44,
|
||||
constraints: const BoxConstraints(maxWidth: 144),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 26),
|
||||
constraints: BoxConstraints(maxWidth: responsiveUtils.isMobile(context) ? double.infinity : 144),
|
||||
alignment: Alignment.center,
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(10), color: colorButton),
|
||||
|
||||
Reference in New Issue
Block a user