TF-4356 Add filter event mail in search (#4357)

* Add `Events` filter checkbox in Advanced Search form
* Perform search email by `Events` filter in Advanced Search form
* Add `Event` quick search button in Search view
* Use `keywords` replace to `headers` for search event filter
This commit is contained in:
Dat Vu
2026-04-03 12:16:03 +07:00
committed by GitHub
parent 6e285c42db
commit bc0f6a4ac6
13 changed files with 154 additions and 24 deletions
@@ -39,6 +39,10 @@ class AdvancedSearchFilterFormBottomView extends GetWidget<AdvancedFilterControl
context,
focusManager.starredCheckboxFocusNode,
),
_buildCheckboxEvents(
context,
focusManager.eventsCheckboxFocusNode,
),
],
),
const SizedBox(height: 25),
@@ -138,6 +142,23 @@ class AdvancedSearchFilterFormBottomView extends GetWidget<AdvancedFilterControl
);
}
Widget _buildCheckboxEvents(
BuildContext context,
FocusNode currentFocusNode,
) {
return Obx(
() => CustomIconLabeledCheckbox(
label: AppLocalizations.of(context).events,
svgIconPath: controller.imagePaths.icCheckboxUnselected,
selectedSvgIconPath: controller.imagePaths.icCheckboxSelected,
focusNode: currentFocusNode,
gap: 8.0,
value: controller.hasEvents.value,
onChanged: controller.onEventsCheckboxChanged,
),
);
}
void _onClickCancelButton() {
controller.clearSearchFilter();
popBack();