TF-105 Change composer library html-editor-enhanced to enough_html_editor support display email content better
This commit is contained in:
@@ -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),
|
||||
|
||||
+4
-5
@@ -59,12 +59,11 @@ dependencies:
|
||||
# getwidget
|
||||
getwidget: 2.0.4
|
||||
|
||||
# Used to fix bugs in the official version of flutter_inappwebview: https://githubmemory.com/repo/pichillilorenzo/flutter_inappwebview/issues/873
|
||||
# flutter_inappwebview
|
||||
flutter_inappwebview:
|
||||
# enough_html_editor
|
||||
enough_html_editor:
|
||||
git:
|
||||
url: git://github.com/robert-virkus/flutter_inappwebview.git
|
||||
ref: master
|
||||
url: git://github.com/dab246/enough_html_editor.git
|
||||
ref: fix_bug_enough_platform_widgets
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
|
||||
Reference in New Issue
Block a user