Browse Source

neon: Fix news article loading

pull/72/head
jld3103 2 years ago
parent
commit
cdba87fc25
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 5
      packages/neon/lib/src/apps/news/pages/article.dart

5
packages/neon/lib/src/apps/news/pages/article.dart

@ -141,6 +141,7 @@ class _NewsArticlePageState extends State<NewsArticlePage> {
body: widget.useWebView body: widget.useWebView
? Stack( ? Stack(
alignment: Alignment.center, alignment: Alignment.center,
fit: StackFit.expand,
children: [ children: [
WebView( WebView(
javascriptMode: JavascriptMode.unrestricted, javascriptMode: JavascriptMode.unrestricted,
@ -161,8 +162,7 @@ class _NewsArticlePageState extends State<NewsArticlePage> {
}, },
), ),
if (_webviewLoading) ...[ if (_webviewLoading) ...[
Expanded( ColoredBox(
child: ColoredBox(
color: Theme.of(context).colorScheme.background, color: Theme.of(context).colorScheme.background,
child: Center( child: Center(
child: LayoutBuilder( child: LayoutBuilder(
@ -173,7 +173,6 @@ class _NewsArticlePageState extends State<NewsArticlePage> {
), ),
), ),
), ),
),
], ],
], ],
) )

Loading…
Cancel
Save