diff --git a/lib/anchored_popups.dart b/lib/anchored_popups.dart index b8187d4..3c26679 100644 --- a/lib/anchored_popups.dart +++ b/lib/anchored_popups.dart @@ -115,7 +115,7 @@ class AnchoredPopupsController extends State { } void _closeHoverOnScreenSizeChange() { - Size screenSize = MediaQueryData.fromWindow(WidgetsBinding.instance!.window).size; + Size screenSize = MediaQueryData.fromWindow(WidgetsBinding.instance.window).size; if (screenSize != _prevSize) { _currentPopupConfig = null; } diff --git a/pubspec.yaml b/pubspec.yaml index 6c2bbbd..638f797 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,11 +1,11 @@ name: anchored_popups description: Shows popup panels and custom tooltips that are anchored to a Widget in the tree. -version: 0.0.1+2 +version: 1.0.0+3 homepage: https://github.com/gskinnerTeam/flutter_anchored_popups environment: - sdk: ">=2.12.0 <3.0.0" - flutter: ">=1.17.0" + sdk: ">=2.17.0 <3.0.0" + flutter: ">=3.0.0" dependencies: flutter: