TF-4195 Implement add a Label to an email on mobile

This commit is contained in:
dab246
2025-12-12 10:34:27 +07:00
committed by Dat H. Pham
parent 78de7de3a6
commit 0076a7af57
29 changed files with 319 additions and 139 deletions
@@ -221,7 +221,7 @@ class AdvancedFilterController extends BaseController {
);
final destinationMailbox = PlatformInfo.isWeb
? await DialogRouter.pushGeneralDialog(
? await DialogRouter().pushGeneralDialog(
routeName: AppRoutes.destinationPicker,
arguments: arguments)
: await push(AppRoutes.destinationPicker, arguments: arguments);
@@ -1342,7 +1342,7 @@ class MailboxDashBoardController extends ReloadableController
);
final destinationMailbox = PlatformInfo.isWeb
? await DialogRouter.pushGeneralDialog(routeName: AppRoutes.destinationPicker, arguments: arguments)
? await DialogRouter().pushGeneralDialog(routeName: AppRoutes.destinationPicker, arguments: arguments)
: await push(AppRoutes.destinationPicker, arguments: arguments);
if (destinationMailbox != null &&
@@ -2201,7 +2201,7 @@ class MailboxDashBoardController extends ReloadableController
contactViewTitle: '${appLocalizations.findEmails} ${appLocalizations.from_email_address_prefix.toLowerCase()}'
);
final newListContact = await DialogRouter.pushGeneralDialog(
final newListContact = await DialogRouter().pushGeneralDialog(
routeName: AppRoutes.contact,
arguments: contactArgument);
@@ -2224,7 +2224,7 @@ class MailboxDashBoardController extends ReloadableController
contactViewTitle: '${appLocalizations.findEmails} ${appLocalizations.to_email_address_prefix.toLowerCase()}'
);
final newListContact = await DialogRouter.pushGeneralDialog(
final newListContact = await DialogRouter().pushGeneralDialog(
routeName: AppRoutes.contact,
arguments: contactArgument);
@@ -2249,7 +2249,7 @@ class MailboxDashBoardController extends ReloadableController
mailboxIdSelected: mailboxIdSelected);
final destinationMailbox = PlatformInfo.isWeb
? await DialogRouter.pushGeneralDialog(
? await DialogRouter().pushGeneralDialog(
routeName: AppRoutes.destinationPicker,
arguments: destinationArgument)
: await push(
@@ -3275,8 +3275,8 @@ class MailboxDashBoardController extends ReloadableController
if (currentAccountId != null && currentSession != null) {
final arguments = EmailRecoveryArguments(currentAccountId, currentSession);
final result = PlatformInfo.isWeb
? await DialogRouter.pushGeneralDialog(
final result = PlatformInfo.isWeb
? await DialogRouter().pushGeneralDialog(
routeName: AppRoutes.emailRecovery,
arguments: arguments,
)