Skip to content

Commit

Permalink
Make physicalSize calculation dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
zwett committed Feb 7, 2024
1 parent 9237e95 commit 1f0e5c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/utils/popover_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ abstract class PopoverUtils {
}
}

static final physicalSize =
static Size get physicalSize =>
PlatformDispatcher.instance.views.first.physicalSize /
PlatformDispatcher.instance.views.first.devicePixelRatio;
PlatformDispatcher.instance.views.first.devicePixelRatio;
}

typedef PopoverTransitionBuilder = Widget Function(
Expand Down

0 comments on commit 1f0e5c4

Please sign in to comment.