Skip to content
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

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

Closed
Siddharth280301 opened this issue Aug 12, 2022 · 2 comments

Comments

@Siddharth280301
Copy link

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
Copy link

zitob9 commented Aug 20, 2022

same problem

@github-actions
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants