diff --git a/lib/page_view.dart b/lib/page_view.dart index 076e133..32dbb50 100644 --- a/lib/page_view.dart +++ b/lib/page_view.dart @@ -128,8 +128,7 @@ class _ConcentricPageViewState extends State { builder: (BuildContext context, child) { // on the first render, the pageController.page is null, // this is a dirty hack - if (_pageController?.position?.minScrollExtent == null || - _pageController?.position?.maxScrollExtent == null) { + if (!_pageController.position.hasContentDimensions) { Future.delayed(Duration(microseconds: 1), () { setState(() {}); });