-
Notifications
You must be signed in to change notification settings - Fork 35
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
Failed assertion: line 31 pos 16: 'dotsCount != null && dotsCount > 0': is not true #14
Comments
Getting the same issue. Got any solution? |
dotsCount: popularProducts.popularProductList.length <= 0 ? 1 : popularProducts.popularProductList.length |
Hi, the error indicate that you have not set the param It's weird, your code seems to be "correct" to avoid having a 0 value, can you provide more code ? |
how did u solve this problem? now i've the same issue |
2 Questions
|
Hi,
I am getting error as:
'package:dots_indicator/src/dots_indicator.dart': Failed assertion: line 31 pos 16: 'dotsCount != null && dotsCount > 0': is not true.
In init state part I am getting a data from remote server. Once the data verify I set the loadIndicator true so I can show the page. in area that data verify before setting the page loadIndicator to true in setState I set the pageLength. pageLength is integer and it totals of list of the data that I get from database. Everything works. Even I set the dotsCount = pageLength;
Any idea why I am keep getting this error?
My code:
flutter doctor -v:
The text was updated successfully, but these errors were encountered: