dooboolab-community / flutter_calendar_carousel

Calendar widget for flutter that is swipeable horizontally. This widget can help you build your own calendar widget highly customizable.
MIT License
837 stars 307 forks source link

Error: Method 'addPostFrameCallback' cannot be called on 'WidgetsBinding?' because it is potentially null. #312

Closed thearithchhie closed 2 years ago

thearithchhie commented 2 years ago

../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_calendar_carousel-2.3.0/lib/flutter_calendar_carousel.dart:950:33: Error: Method 'addPostFrameCallback' cannot be called on 'WidgetsBinding?' because it is potentially null.

hyochan commented 2 years ago

I think #313 patch will work which is published in version 3.2.1.

Please try this and come back.

alandotic commented 2 years ago

reproduced the issue with flutter 2.5.3

image

313 will fix this but will break flutter 3.0

bambinoua commented 2 years ago

After upgrade the version this warning occurred #314