diff --git a/lib/features/rules_filter_creator/presentation/model/email_rule_filter_action.dart b/lib/features/rules_filter_creator/presentation/model/email_rule_filter_action.dart index ce95d41261..7daca3ab80 100644 --- a/lib/features/rules_filter_creator/presentation/model/email_rule_filter_action.dart +++ b/lib/features/rules_filter_creator/presentation/model/email_rule_filter_action.dart @@ -1,5 +1,3 @@ - - import 'package:flutter/cupertino.dart'; import 'package:tmail_ui_user/main/localizations/app_localizations.dart'; @@ -27,4 +25,8 @@ enum EmailRuleFilterAction { return AppLocalizations.of(context).forwardTo; } } + + bool getSupported() { + return this != EmailRuleFilterAction.forwardTo; + } } \ No newline at end of file diff --git a/lib/features/rules_filter_creator/presentation/model/rule_filter_action_arguments.dart b/lib/features/rules_filter_creator/presentation/model/rule_filter_action_arguments.dart index f8a5494af5..5199d4c04d 100644 --- a/lib/features/rules_filter_creator/presentation/model/rule_filter_action_arguments.dart +++ b/lib/features/rules_filter_creator/presentation/model/rule_filter_action_arguments.dart @@ -1,5 +1,5 @@ import 'package:equatable/equatable.dart'; -import 'package:model/model.dart'; +import 'package:model/mailbox/presentation_mailbox.dart'; import 'package:tmail_ui_user/features/rules_filter_creator/presentation/model/email_rule_filter_action.dart'; class RuleFilterActionArguments with EquatableMixin { diff --git a/lib/features/rules_filter_creator/presentation/widgets/rule_filter_action_detailed_builder.dart b/lib/features/rules_filter_creator/presentation/widgets/rule_filter_action_detailed_builder.dart index 589663c919..3a8b001c7d 100644 --- a/lib/features/rules_filter_creator/presentation/widgets/rule_filter_action_detailed_builder.dart +++ b/lib/features/rules_filter_creator/presentation/widgets/rule_filter_action_detailed_builder.dart @@ -51,7 +51,7 @@ class RuleFilterActionDetailed extends StatelessWidget { case EmailRuleFilterAction.rejectIt: case EmailRuleFilterAction.markAsSpam: default: - return Container(); + return const SizedBox.shrink(); } } }