From cdba87fc2512c42d251fc6d27570af31f76dfeca Mon Sep 17 00:00:00 2001 From: jld3103 Date: Sun, 2 Oct 2022 12:01:21 +0200 Subject: [PATCH] neon: Fix news article loading --- .../neon/lib/src/apps/news/pages/article.dart | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/packages/neon/lib/src/apps/news/pages/article.dart b/packages/neon/lib/src/apps/news/pages/article.dart index e16b22b7..2e84047d 100644 --- a/packages/neon/lib/src/apps/news/pages/article.dart +++ b/packages/neon/lib/src/apps/news/pages/article.dart @@ -141,6 +141,7 @@ class _NewsArticlePageState extends State { body: widget.useWebView ? Stack( alignment: Alignment.center, + fit: StackFit.expand, children: [ WebView( javascriptMode: JavascriptMode.unrestricted, @@ -161,15 +162,13 @@ class _NewsArticlePageState extends State { }, ), if (_webviewLoading) ...[ - Expanded( - child: ColoredBox( - color: Theme.of(context).colorScheme.background, - child: Center( - child: LayoutBuilder( - builder: (final context, final constraints) => SizedBox( - width: constraints.maxWidth / 2, - child: const CustomLinearProgressIndicator(), - ), + ColoredBox( + color: Theme.of(context).colorScheme.background, + child: Center( + child: LayoutBuilder( + builder: (final context, final constraints) => SizedBox( + width: constraints.maxWidth / 2, + child: const CustomLinearProgressIndicator(), ), ), ),