TF-119 Filter messages support for tablet, desktop
This commit is contained in:
@@ -439,6 +439,16 @@ class ThreadController extends BaseController {
|
||||
.build();
|
||||
}
|
||||
|
||||
void openFilterMessagesForTablet(BuildContext context, RelativeRect? position, List<PopupMenuEntry> popupMenuItems) async {
|
||||
await showMenu(
|
||||
context: context,
|
||||
position: position ?? RelativeRect.fromLTRB(16, 40, 16, 16),
|
||||
color: Colors.white,
|
||||
elevation: 5,
|
||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(14)),
|
||||
items: popupMenuItems);
|
||||
}
|
||||
|
||||
void closeFilterMessageActionSheet() {
|
||||
popBack();
|
||||
}
|
||||
@@ -461,12 +471,6 @@ class ThreadController extends BaseController {
|
||||
icon: newFilterOption.getIconToast(_imagePaths));
|
||||
}
|
||||
|
||||
void openContextMenuSelectedEmail(BuildContext context, List<Widget> actionTiles) {
|
||||
(ContextMenuBuilder(context)
|
||||
..addTiles(actionTiles))
|
||||
.build();
|
||||
}
|
||||
|
||||
void moveSelectedMultipleEmailToMailboxAction(List<PresentationEmail> listEmail) async {
|
||||
final currentMailbox = mailboxDashBoardController.selectedMailbox.value;
|
||||
if (currentMailbox != null && _accountId != null) {
|
||||
@@ -549,16 +553,6 @@ class ThreadController extends BaseController {
|
||||
}
|
||||
}
|
||||
|
||||
void openPopupMenuSelectedEmail(BuildContext context, RelativeRect position, List<PopupMenuItem> popupMenuItems) async {
|
||||
await showMenu(
|
||||
context: context,
|
||||
position: position,
|
||||
color: Colors.white,
|
||||
elevation: 5,
|
||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8)),
|
||||
items: popupMenuItems);
|
||||
}
|
||||
|
||||
void markAsStarEmail(PresentationEmail presentationEmail) {
|
||||
final mailboxCurrent = mailboxDashBoardController.selectedMailbox.value;
|
||||
if (_accountId != null && mailboxCurrent != null) {
|
||||
|
||||
Reference in New Issue
Block a user