bensonarafat / super_tooltip

SuperTooltip It is super flexible and allows you to display ToolTips in the overlay of the screen.
https://pub.dev/packages/super_tooltip
MIT License
141 stars 95 forks source link

fix: Overlay.of(context) nullable #66

Closed bensonarafat closed 1 year ago

bensonarafat commented 1 year ago

Fixed #62

UKOM commented 1 year ago

I have checked the source code of Flutter 3.3.10 version SDK and found that the function Overlay.of(context) returns a nullable OverlayState. However, in the latest version of the Flutter API documentation, the same function returns a non-nullable OverlayState. So, in order to maintain compatibility with lower versions, I think we should suppress the error from Flutter analyze.

bensonarafat commented 1 year ago

@UKOM I did the same. Overlay.of(context) returns a non-nullable. Haven't got time to work it out. I will soon