GeekyAnts / flutter-carousel

A carousel package in flutter with various configuration options
Other
66 stars 29 forks source link

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

Closed JoshRice1 closed 4 years ago

JoshRice1 commented 5 years ago

Receive this error when I tap on my image in the carousel to rout to a new page

PageController.page cannot be accessed before a PageView is built with it. 'package:flutter/src/widgets/page_view.dart': Failed assertion: line 179 pos 7: 'positions.isNotEmpty' User-created ancestor of the error-causing widget was Carousel

jaiswalshubham84 commented 5 years ago

@JoshRice1 It's hard to say with the error message that what actually is causing this issue. If you can post your code implementation, it will be much easy for me to debug the issue and provide you a solution

JoshRice1 commented 4 years ago

I resolved the issue bad on my part.