TF-3007 [SEARCH] Support drag and drop between From & To field (#3154)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import 'package:core/core.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:model/email/prefix_email_address.dart';
|
||||
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
|
||||
|
||||
enum AdvancedSearchFilterField {
|
||||
@@ -64,6 +65,17 @@ enum AdvancedSearchFilterField {
|
||||
color: AppColor.colorContentEmail);
|
||||
}
|
||||
|
||||
PrefixEmailAddress getPrefixEmailAddress() {
|
||||
switch (this) {
|
||||
case AdvancedSearchFilterField.from:
|
||||
return PrefixEmailAddress.from;
|
||||
case AdvancedSearchFilterField.to:
|
||||
return PrefixEmailAddress.to;
|
||||
default:
|
||||
return PrefixEmailAddress.cc;
|
||||
}
|
||||
}
|
||||
|
||||
TextStyle getHintTextStyle() {
|
||||
return const TextStyle(
|
||||
fontSize: 16,
|
||||
|
||||
Reference in New Issue
Block a user