utils/src/adapt_util library

Properties

hasBottomSafeArea → bool
当前窗口是否有底部安全区,适用于所有平台。
no setter
isIPhoneX → bool
带底部安全区的 iPhone(包含 iPhone X 及后续机型),不用于识别具体型号。
no setter
screenAppBarHeightDp → double
状态栏高度+AppBar高度 dp
no setter
screenBottomBarHeightDp → double
底部安全区距离 dp
no setter
screenDevicePixelRatio → double
设备的像素密度
no setter
screenHeightDp → double
当前设备高度 dp
no setter
screenStatusBarHeightDp → double
状态栏高度 dp 刘海屏会更高
no setter
screenToolbarHeightDp ↔ double
导航栏高度 dp
getter/setter pair
screenWidthDp → double
当前设备宽度 dp
no setter