TF-3450 Add text attachment preview

This commit is contained in:
DatDang
2025-02-20 10:24:58 +07:00
committed by Dat H. Pham
parent 3645fe58f9
commit ef1d37f7ac
9 changed files with 150 additions and 0 deletions
@@ -24,6 +24,7 @@ import 'package:tmail_ui_user/features/email/domain/usecases/export_attachment_i
import 'package:tmail_ui_user/features/email/domain/usecases/get_email_content_interactor.dart';
import 'package:tmail_ui_user/features/email/domain/usecases/get_image_data_from_attachment_interactor.dart';
import 'package:tmail_ui_user/features/email/domain/usecases/get_stored_email_state_interactor.dart';
import 'package:tmail_ui_user/features/email/domain/usecases/get_text_data_from_attachment_interactor.dart';
import 'package:tmail_ui_user/features/email/domain/usecases/mark_as_email_read_interactor.dart';
import 'package:tmail_ui_user/features/email/domain/usecases/mark_as_star_email_interactor.dart';
import 'package:tmail_ui_user/features/email/domain/usecases/move_to_mailbox_interactor.dart';
@@ -86,6 +87,7 @@ class EmailBindings extends BaseBindings {
Get.find<DownloadAllAttachmentsForWebInteractor>(),
Get.find<ExportAllAttachmentsInteractor>(),
Get.find<GetImageDataFromAttachmentInteractor>(),
Get.find<GetTextDataFromAttachmentInteractor>(),
));
}
@@ -187,6 +189,9 @@ class EmailBindings extends BaseBindings {
Get.lazyPut(() => GetImageDataFromAttachmentInteractor(
Get.find<DownloadAttachmentForWebInteractor>(),
));
Get.lazyPut(() => GetTextDataFromAttachmentInteractor(
Get.find<DownloadAttachmentForWebInteractor>(),
));
}
@override