Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PageController.page cannot be accessed before a PageView is built with it. #199

Closed
Obada2020 opened this issue Oct 22, 2023 · 6 comments
Closed
Labels
bug Something isn't working

Comments

@Obada2020
Copy link

Unhandled Exception: 'package:flutter/src/widgets/page_view.dart': Failed assertion: line 170 pos 7: 'positions.isNotEmpty': PageController.page cannot be accessed before a PageView is built with it.

@Obada2020 Obada2020 added the bug Something isn't working label Oct 22, 2023
@SupianIDz
Copy link

I experienced it too.

@syedarsalankazmi
Copy link

syedarsalankazmi commented Jan 16, 2024

Getting the same error.

Unhandled Exception: 'package:flutter/src/widgets/page_view.dart': Failed assertion: line 170 pos 7: 'positions.isNotEmpty': PageController.page cannot be accessed before a PageView is built with it.

Also, this exception appears only when I press the "Skip" button. Does not occur when "Done" is pressed.

@fedejuret
Copy link

Same error here

@domgolonka
Copy link

I am getting this error on skip and done.

@fedejuret
Copy link

I am getting this error on skip and done.

I managed to "solve it" by eliminating autoplay. That the user has to tap on "next".
And I also had to remove the "skip" button.

@Pyozer
Copy link
Owner

Pyozer commented Mar 23, 2024

New version 3.1.13 fix that issue.

@Pyozer Pyozer closed this as completed Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants