From 03089bb91f05e5e70769f5ca9aee77804f75ba4f Mon Sep 17 00:00:00 2001 From: richardracz Date: Sun, 21 Mar 2021 17:54:59 +0100 Subject: [PATCH] fixed null check operator issue --- lib/page_view.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(() {}); });