-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TF-2646 Handle move all selection emails when drag and drop to mailbox
- Loading branch information
Showing
28 changed files
with
630 additions
and
383 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
class AssetsPaths { | ||
static const images = 'assets/images/'; | ||
static const icons = 'assets/icons/'; | ||
static const configurationImages = 'configurations/icons/'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
import 'dart:ui'; | ||
|
||
import 'package:core/presentation/extensions/color_extension.dart'; | ||
import 'package:core/presentation/resources/image_paths.dart'; | ||
import 'package:flutter_svg/flutter_svg.dart'; | ||
import 'package:tmail_ui_user/features/base/mixin/message_dialog_action_mixin.dart'; | ||
import 'package:tmail_ui_user/main/localizations/app_localizations.dart'; | ||
import 'package:tmail_ui_user/main/routes/route_navigation.dart'; | ||
|
||
mixin EmailActionHandlerMixin implements MessageDialogActionMixin{ | ||
Future<void> showConfirmDialogWhenMakeToActionForSelectionAllEmails({ | ||
required ImagePaths imagePaths, | ||
required int totalEmails, | ||
required String folderName, | ||
required VoidCallback onConfirmAction, | ||
}) async { | ||
if (currentContext == null) return; | ||
|
||
final appLocalizations = AppLocalizations.of(currentContext!); | ||
|
||
await showConfirmDialogAction( | ||
currentContext!, | ||
appLocalizations.messageConfirmationDialogWhenMakeToActionForSelectionAllEmailsInMailbox( | ||
totalEmails, | ||
folderName, | ||
), | ||
appLocalizations.ok, | ||
title: appLocalizations.confirmBulkAction, | ||
icon: SvgPicture.asset( | ||
imagePaths.icQuotasWarning, | ||
colorFilter: AppColor.colorBackgroundQuotasWarning.asFilter(), | ||
), | ||
onConfirmAction: onConfirmAction, | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
lib/features/mailbox/presentation/utils/mailbox_method_action_define.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.