diff --git a/lib/src/utils/popover_utils.dart b/lib/src/utils/popover_utils.dart index 2cdea06..a58e940 100644 --- a/lib/src/utils/popover_utils.dart +++ b/lib/src/utils/popover_utils.dart @@ -33,8 +33,9 @@ abstract class PopoverUtils { } } - static final physicalSize = - PlatformDispatcher.instance.views.first.physicalSize; + static Size get physicalSize => + PlatformDispatcher.instance.views.first.physicalSize / + PlatformDispatcher.instance.views.first.devicePixelRatio; } typedef PopoverTransitionBuilder = Widget Function(