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:
+21
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user