I have a screen with a PageView, PageView have 3 webView as childs, and pageView scrollDirection is Axis.vertical, the problem is each pageView child height is not adjust to the height of each webView height.
Widget build(BuildContext context) {
final PageController controller = PageController(initialPage: 0);
return PageView(
/// [PageView.scrollDirection] defaults to [Axis.horizontal].
/// Use [Axis.vertical] to scroll vertically.
scrollDirection: Axis.vertical,
controller: controller,
children: const <Widget>[
createWebView("/book/page1.html"),
createWebView("/book/page2.html"),
createWebView("/book/page3.html"),
],
);
}
How to set the height for each pageView child after load web content completed, thank you!