TF-3933 Avoid load font from google
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -357,7 +357,7 @@ class EmailView extends GetWidget<SingleEmailController> {
|
||||
mailtoDelegate: controller.openMailToLink,
|
||||
direction: AppUtils.getCurrentDirection(context),
|
||||
contentPadding: 0,
|
||||
useDefaultFont: true,
|
||||
useDefaultFontStyle: true,
|
||||
scrollController: scrollController,
|
||||
enableQuoteToggle: isInsideThreadDetailView,
|
||||
),
|
||||
@@ -381,7 +381,7 @@ class EmailView extends GetWidget<SingleEmailController> {
|
||||
initialWidth: bodyConstraints.maxWidth,
|
||||
direction: AppUtils.getCurrentDirection(context),
|
||||
contentPadding: 0,
|
||||
useDefaultFont: true,
|
||||
useDefaultFontStyle: true,
|
||||
maxHtmlContentHeight: ConstantsUI.htmlContentMaxHeight,
|
||||
onMailtoDelegateAction: controller.openMailToLink,
|
||||
onHtmlContentClippedAction: controller.onHtmlContentClippedAction,
|
||||
@@ -421,7 +421,7 @@ class EmailView extends GetWidget<SingleEmailController> {
|
||||
initialWidth: bodyConstraints.maxWidth,
|
||||
direction: AppUtils.getCurrentDirection(context),
|
||||
contentPadding: 0,
|
||||
useDefaultFont: true,
|
||||
useDefaultFontStyle: true,
|
||||
onMailtoDelegateAction: controller.openMailToLink,
|
||||
keepAlive: isInsideThreadDetailView,
|
||||
enableQuoteToggle: isInsideThreadDetailView,
|
||||
|
||||
@@ -50,6 +50,7 @@ class EventBodyContentWidget extends StatelessWidget {
|
||||
return HtmlContentViewerOnWeb(
|
||||
widthContent: constraints.maxWidth,
|
||||
contentHtml: content,
|
||||
useDefaultFontStyle: true,
|
||||
mailtoDelegate: onMailtoDelegateAction,
|
||||
direction: AppUtils.getCurrentDirection(context),
|
||||
scrollController: scrollController,
|
||||
@@ -64,6 +65,7 @@ class EventBodyContentWidget extends StatelessWidget {
|
||||
maxHtmlContentHeight: PlatformInfo.isIOS
|
||||
? ConstantsUI.htmlContentMaxHeight
|
||||
: null,
|
||||
useDefaultFontStyle: true,
|
||||
direction: AppUtils.getCurrentDirection(context),
|
||||
onMailtoDelegateAction: onMailtoDelegateAction
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user