mponkin / fading_edge_scrollview

Flutter library for displaying fading edges on scroll views
BSD 3-Clause "New" or "Revised" License
43 stars 30 forks source link

Flutter 3.0.0 is detecting issue with the library #16

Closed RoyalCoder88 closed 2 years ago

RoyalCoder88 commented 2 years ago

../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fading_edge_scrollview-2.0.1/lib/src/fading_edge_scrollview.dart:220:20: Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.

dJani97 commented 2 years ago

Having the same issue.

In Flutter 3, WidgetsBinding.instance is no longer nullable, so the ?. operator is no longer necessary. Please remove these operators.

Reproducible by using Flutter 3 and the latest version of this library in the same project.

mponkin commented 2 years ago

Fixed in version 3.0.0 Sorry for missing this issue. Been busy with other stuff and haven't seen any notifications. Thanks to @ruslic19 for providing the PR