TF-2520 Convert email object to html to perform print on browser

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2024-03-06 16:41:01 +07:00
committed by Dat H. Pham
parent ebd62ab78f
commit 632762bfcd
22 changed files with 309 additions and 531 deletions
+1
View File
@@ -2,4 +2,5 @@ class Constant {
static const acceptHeaderDefault = 'application/json';
static const contentTypeHeaderDefault = 'application/json';
static const pdfMimeType = 'application/pdf';
static const textHtmlMimeType = 'text/html';
}
+3 -3
View File
@@ -2,19 +2,19 @@
import 'package:equatable/equatable.dart';
class PrintAttachment with EquatableMixin {
final String iconSvg;
final String iconBase64Data;
final String name;
final String size;
PrintAttachment({
required this.iconSvg,
required this.iconBase64Data,
required this.name,
required this.size
});
@override
List<Object?> get props => [
iconSvg,
iconBase64Data,
name,
size
];