buildView method
Implementation
@override
Widget buildView(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Obx(() {
return Text(controller.title.value);
}),
),
body: Stack(children: [
WebViewWidget(controller: controller.webController),
Obx(() {
return controller.loadProgress.value < 100
? LinearProgressIndicator(
backgroundColor: Colors.grey[200],
valueColor: const AlwaysStoppedAnimation<Color>(Colors.blue),
value: controller.loadProgress.value,
)
: const SizedBox.shrink();
}),
]),
);
}