TF-4229 Add widget for label search field
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
import 'package:labels/labels.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox_dashboard/presentation/controller/advanced_filter_controller.dart';
|
||||
|
||||
extension UpdateLabelInAdvancedSearchExtension on AdvancedFilterController {
|
||||
void setSelectedLabel(Label? newLabel) {
|
||||
if (selectedLabel.value?.id == newLabel?.id) {
|
||||
selectedLabel.value = null;
|
||||
} else {
|
||||
selectedLabel.value = newLabel;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user