Mindinventory / image_cropping

Crop and Rotate Images using this Flutter plugin
https://www.mindinventory.com/flutter-app-development.php
MIT License
43 stars 18 forks source link

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

Closed EBBozkurt closed 2 years ago

EBBozkurt commented 2 years ago

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 commented 2 years ago

@EBBozkurt done 👍