Skip to content

Commit

Permalink
fixed null check operator issue
Browse files Browse the repository at this point in the history
  • Loading branch information
richardracz committed Mar 21, 2021
1 parent 41ddd87 commit 03089bb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/page_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ class _ConcentricPageViewState extends State<ConcentricPageView> {
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(() {});
});
Expand Down

0 comments on commit 03089bb

Please sign in to comment.