TF-4233 Handle edit label on mobile

This commit is contained in:
dab246
2026-01-05 17:00:28 +07:00
committed by Dat H. Pham
parent bac101021e
commit ac33424c30
8 changed files with 131 additions and 8 deletions
@@ -7,7 +7,7 @@ import 'package:tmail_ui_user/features/labels/presentation/models/label_action_t
import 'package:tmail_ui_user/features/mailbox_dashboard/presentation/controller/mailbox_dashboard_controller.dart';
extension HandleLabelActionTypeExtension on MailboxDashBoardController {
Future<void> openLabelContextMenuAction(
Future<void> openLabelPopupMenuAction(
BuildContext context,
ImagePaths imagePaths,
Label label,
@@ -17,11 +17,11 @@ extension HandleLabelActionTypeExtension on MailboxDashBoardController {
isPopupMenuOpened.value = true;
}
return labelController
.openLabelContextMenuAction(
.openLabelMenuAction(
context,
imagePaths,
label,
position,
position: position,
_onPerformLabelActionType,
)
.whenComplete(() {
@@ -38,4 +38,17 @@ extension HandleLabelActionTypeExtension on MailboxDashBoardController {
label: label,
);
}
Future<void> openLabelContextMenuAction(
BuildContext context,
ImagePaths imagePaths,
Label label,
) async {
return labelController.openLabelMenuAction(
context,
imagePaths,
label,
_onPerformLabelActionType,
);
}
}