diff --git a/lib/util.dart b/lib/util.dart index 799d1a1..2738127 100644 --- a/lib/util.dart +++ b/lib/util.dart @@ -62,15 +62,15 @@ class Device { height = boxConstraints.maxHeight; // Calculates remaining available size after `SafeArea` - final viewPadding = MediaQuery.of(context).viewPadding; - // final viewPadding = MediaQuery.viewPaddingOf(context); + // final viewPadding = MediaQuery.of(context).viewPadding; + final viewPadding = MediaQuery.viewPaddingOf(context); safeWidth = width - (viewPadding.left + viewPadding.right); safeHeight = height - (viewPadding.top + viewPadding.bottom); // Sets aspect and pixel ratio aspectRatio = constraints.constrainDimensions(width, height).aspectRatio; pixelRatio = MediaQuery.of(context).devicePixelRatio; - // pixelRatio = MediaQuery.devicePixelRatioOf(context); + pixelRatio = MediaQuery.devicePixelRatioOf(context); // Sets DeviceType if (kIsWeb) {