Skip to content

Commit

Permalink
Merge pull request #6 from richardracz/master
Browse files Browse the repository at this point in the history
Fixed null check operator issue
  • Loading branch information
tiamo authored Mar 22, 2021
2 parents 41ddd87 + 03089bb commit 57b0b72
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 57b0b72

Please sign in to comment.