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

Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null. #13

Closed
EBBozkurt opened this issue May 26, 2022 · 1 comment

Comments

@EBBozkurt
Copy link

EBBozkurt commented May 26, 2022

https://github.com/Mindinventory/image_cropping/blob/master/lib/image_cropping.dart

remove old one :
WidgetsBinding.instance?.addPostFrameCallback((timeStamp) async {
topViewHeight = stackGlobalKey.globalPaintBounds?.top ?? 0;
});

replace with:
WidgetsBinding.instance.addPostFrameCallback((timeStamp) async {
topViewHeight = stackGlobalKey.globalPaintBounds?.top ?? 0;
});

Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.

image

@abrarmalekji345
Copy link
Collaborator

@EBBozkurt done 👍

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

No branches or pull requests

2 participants