TF-153 Mark as spam when hover email in thread view
This commit is contained in:
@@ -9,6 +9,7 @@ import 'package:tmail_ui_user/features/thread/presentation/model/search_status.d
|
||||
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
|
||||
|
||||
typedef OnPressEmailActionClick = void Function(EmailActionType, PresentationEmail);
|
||||
typedef OnMoreActionClick = void Function(PresentationEmail, RelativeRect?);
|
||||
|
||||
class EmailTileBuilder {
|
||||
|
||||
@@ -23,6 +24,7 @@ class EmailTileBuilder {
|
||||
final SearchQuery? _searchQuery;
|
||||
|
||||
OnPressEmailActionClick? _emailActionClick;
|
||||
OnMoreActionClick? _onMoreActionClick;
|
||||
|
||||
bool isHoverItem = false;
|
||||
bool isHoverItemSelected = false;
|
||||
@@ -40,6 +42,10 @@ class EmailTileBuilder {
|
||||
_emailActionClick = actionClick;
|
||||
}
|
||||
|
||||
void addOnMoreActionClick(OnMoreActionClick onMoreActionClick) {
|
||||
_onMoreActionClick = onMoreActionClick;
|
||||
}
|
||||
|
||||
Widget build() {
|
||||
return Theme(
|
||||
key: Key('thread_tile'),
|
||||
|
||||
Reference in New Issue
Block a user