TF-105 Change composer library html-editor-enhanced to enough_html_editor support display email content better

This commit is contained in:
dab246
2021-10-06 17:03:07 +07:00
committed by Dat H. Pham
parent 1350f96f06
commit 8fb57725df
7 changed files with 64 additions and 62 deletions
@@ -26,4 +26,8 @@ extension HtmlExtension on String {
}
return htmlString;
}
String addBlockQuoteTag() => addBlockTag(
'blockquote',
attribute: 'style=\"margin-left:8px;margin-right:8px;padding-left:12px;padding-right:12px;border-left:5px solid #eee;\"');
}
@@ -52,7 +52,7 @@ class _HtmlContentViewState extends State<HtmlContentViewer> {
String? _htmlData;
bool? _wereExternalImagesBlocked;
bool _isGenerating = false;
double? _webViewContentHeight;
double? _webViewContentHeight = 1.0;
@override
void initState() {
@@ -114,7 +114,7 @@ class _HtmlContentViewState extends State<HtmlContentViewer> {
final size = MediaQuery.of(context).size;
return SizedBox(
height: _webViewContentHeight ?? size.height,
height: _webViewContentHeight,
width: size.width,
child: Padding(
padding: EdgeInsets.only(top: 16),