carga
This commit is contained in:
@@ -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),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user