|
|
@ -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,15 +162,13 @@ 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( |
|
|
|
builder: (final context, final constraints) => SizedBox( |
|
|
|
builder: (final context, final constraints) => SizedBox( |
|
|
|
width: constraints.maxWidth / 2, |
|
|
|
width: constraints.maxWidth / 2, |
|
|
|
child: const CustomLinearProgressIndicator(), |
|
|
|
child: const CustomLinearProgressIndicator(), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|