-
Notifications
You must be signed in to change notification settings - Fork 309
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
When try to switch to another month with HeaderButton got the error - "The method 'call' was called on null." #242
Comments
I have this problem too, but even downgrading to a version that worked before (i was using the 1.4.12) causes the same issue... i think it has to do with the latest flutter update (1.22) |
Yes, I also tried to downgrade the plugin, it didn't help. So, the issue is connected with the new version of Flutter. |
I also tried to implement the onLeftButtonPressed and onRightButtonPressed and checked what the library does; in this way the header changes the month indication but the calendar doesn't show the correct days, setDate is never called because apparently _pageNum is always zero The condition is this this._pageNum > 0 ? _setDate(this._pageNum - 1) : null; |
Any updates on this? having the same issue. Anyone know of a work around for the time being? |
I already fixed the issue and wait for the request is merged. The temporary way is needed to manually modify the source code in your project. See the file changed in #243 |
Thanks! I already tried that but i noticed that while the header correctly switches months back and forth, the calendar stays in the initial month without moving, because it seems that _pageNum is always 0. Am i missing something from your fix? |
Well done, checked in my app, it works. |
I'm not sure, who should close the issue, for me as the starter, the issue is resolved. |
Thank you for the cool plugin!
Version of flutter_calendar_carousel
flutter_calendar_carousel: ^1.5.0
Expected behavior
When we tapped on the header we should go to another month (week).
Actual behavior
Nothing happens, got the error in the console
flutter doctor result (run flutter doctor in terminal)
Steps to reproduce the behavior
Just run the example https://github.com/dooboolab/flutter_calendar_carousel/blob/master/example/lib/main.dart
The text was updated successfully, but these errors were encountered: