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
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Stack(
|
return Stack(
|
||||||
alignment: AlignmentDirectional.center,
|
|
||||||
children: [
|
children: [
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: actualHeight,
|
height: actualHeight,
|
||||||
width: actualWidth,
|
width: actualWidth,
|
||||||
child: _buildWebView(),
|
child: _buildWebView(),
|
||||||
),
|
),
|
||||||
if (_isLoading) _buildLoadingView()
|
if (_isLoading) Align(alignment: Alignment.center, child: _buildLoadingView())
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ class _HtmlContentViewState extends State<HtmlContentViewer> {
|
|||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
|
_webViewWidth = widget.widthContent;
|
||||||
_htmlData = _generateHtmlDocument(widget.contentHtml);
|
_htmlData = _generateHtmlDocument(widget.contentHtml);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -101,16 +102,14 @@ class _HtmlContentViewState extends State<HtmlContentViewer> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
_webViewWidth = widget.widthContent;
|
|
||||||
return Stack(
|
return Stack(
|
||||||
alignment: AlignmentDirectional.center,
|
|
||||||
children: [
|
children: [
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: _webViewHeight,
|
height: _webViewHeight,
|
||||||
width: _webViewWidth,
|
width: _webViewWidth,
|
||||||
child: _buildWebView(),
|
child: _buildWebView(),
|
||||||
),
|
),
|
||||||
if (_isLoading) _buildLoadingView()
|
if (_isLoading) Align(alignment: Alignment.center, child: _buildLoadingView())
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user