TF-424 Fix the margin between email header and body is too big
This commit is contained in:
@@ -235,14 +235,13 @@ class _HtmlContentViewerOnWebState extends State<HtmlContentViewerOnWeb> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Stack(
|
||||
alignment: AlignmentDirectional.center,
|
||||
children: [
|
||||
SizedBox(
|
||||
height: actualHeight,
|
||||
width: actualWidth,
|
||||
child: _buildWebView(),
|
||||
),
|
||||
if (_isLoading) _buildLoadingView()
|
||||
if (_isLoading) Align(alignment: Alignment.center, child: _buildLoadingView())
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
@@ -51,6 +51,7 @@ class _HtmlContentViewState extends State<HtmlContentViewer> {
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_webViewWidth = widget.widthContent;
|
||||
_htmlData = _generateHtmlDocument(widget.contentHtml);
|
||||
}
|
||||
|
||||
@@ -101,16 +102,14 @@ class _HtmlContentViewState extends State<HtmlContentViewer> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
_webViewWidth = widget.widthContent;
|
||||
return Stack(
|
||||
alignment: AlignmentDirectional.center,
|
||||
children: [
|
||||
SizedBox(
|
||||
height: _webViewHeight,
|
||||
width: _webViewWidth,
|
||||
child: _buildWebView(),
|
||||
),
|
||||
if (_isLoading) _buildLoadingView()
|
||||
if (_isLoading) Align(alignment: Alignment.center, child: _buildLoadingView())
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user