diff --git a/ScreenUtil.dart b/ScreenUtil.dart index 792b93b807dd2a1417989c55fdc222252fead3f4..7acfbba3394c1bf2cf3f9959ff73b176d391df61 100644 --- a/ScreenUtil.dart +++ b/ScreenUtil.dart @@ -30,7 +30,7 @@ class ScreenUtil { //相对于设计稿放大的倍数 var scaleWidth = screenWidth / designWidth / pixelRatio; - var scaleHeight = screenHeight / designWidth / pixelRatio; + var scaleHeight = screenHeight / designHeight / pixelRatio; static ScreenUtil getInstance() { if (instance == null) {