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

Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null. #319

Closed Siddharth280301 closed 1 year ago

Siddharth280301 commented 2 years ago

flutter_calendar_carousel : 2.4.0

Following is the error I face when compiling the code : ../../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_calendar_carousel-2.4.0/lib/flutter_calendar_carousel.dart:950:24: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null. 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../flutter/packages/flutter/lib/src/widgets/binding.dart'). WidgetsBinding.instance!.addPostFrameCallback((_) {

My flutter version: Flutter 3.0.5 • channel stable • https://github.com/flutter/flutter.git Framework • revision f1875d570e (4 weeks ago) • 2022-07-13 11:24:16 -0700 Engine • revision e85ea0e79c Tools • Dart 2.17.6 • DevTools 2.12.2

zitob9 commented 2 years ago

same problem

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days.