dooboolab-community/flutter_calendar_carousel

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

Siddharth280301 opened this issue · 2 comments

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

same problem

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.