TF-359 Open a web address and mailto link from EmailView

This commit is contained in:
dab246
2022-04-05 18:49:30 +07:00
committed by Dat H. Pham
parent 8cdb2c6fa4
commit c456cde7a8
11 changed files with 69 additions and 55 deletions
@@ -536,12 +536,14 @@ class EmailView extends GetView with UserSettingPopupMenuMixin, NetworkConnectio
widthContent: constraints.maxWidth,
heightContent: MediaQuery.of(context).size.height,
contentHtml: allEmailContents,
controller: HtmlViewerControllerForWeb());
controller: HtmlViewerControllerForWeb(),
mailtoDelegate: (uri) => emailController.openMailToLink(uri));
} else {
return HtmlContentViewer(
widthContent: MediaQuery.of(context).size.width,
contentHtml: allEmailContents,
loadingWidget: EmailContentPlaceHolderLoading(responsiveUtils: responsiveUtils));
loadingWidget: EmailContentPlaceHolderLoading(responsiveUtils: responsiveUtils),
mailtoDelegate: (uri) async => emailController.openMailToLink(uri));
}
} else {
return SizedBox.shrink();