This commit is contained in:
Felipe
2023-10-27 11:32:45 -05:00
parent d70b828160
commit b75cf7da13
3 changed files with 52 additions and 29 deletions
+18 -11
View File
@@ -19,9 +19,7 @@ class _WebViewScreenState extends State<WebViewScreen> {
..setBackgroundColor(const Color(0x00000000))
..setNavigationDelegate(
NavigationDelegate(
onProgress: (int progress) {
// Update loading bar.
},
onProgress: (int progress) {},
onPageStarted: (String url) {},
onPageFinished: (String url) {},
onWebResourceError: (WebResourceError error) {},
@@ -35,13 +33,22 @@ class _WebViewScreenState extends State<WebViewScreen> {
)
..loadRequest(Uri.parse(widget.link));
return Scaffold(
appBar: PopAppbar(
onPressed: () {
Navigator.pop(context);
},
label: widget.label,
),
body: WebViewWidget(controller: controller),
);
appBar: PopAppbar(
onPressed: () {
Navigator.pop(context);
},
label: widget.label,
),
body: Stack(
children: [
const Center(child: CircularProgressIndicator()),
WebViewWidget(controller: controller),
],
)
// isLoading
// ? const Center(child: CircularProgressIndicator())
// : WebViewWidget(controller: controller),
);
}
}