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

Fix widgetsbinding declaration #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/anchored_popups.dart
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class AnchoredPopupsController extends State<AnchoredPopups> {
}

void _closeHoverOnScreenSizeChange() {
Size screenSize = MediaQueryData.fromWindow(WidgetsBinding.instance!.window).size;
Size screenSize = MediaQueryData.fromWindow(WidgetsBinding.instance.window).size;
if (screenSize != _prevSize) {
_currentPopupConfig = null;
}
Expand Down
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down