utils/screenutil/screenutil library

Functions

getMediaQueryInfo(BuildContext context) EdgeInsets
获取页面边距信息,如:状态栏高度、底部安全区高度等
screenUtilInit(BuildContext context, {Size designSize = const Size(375, 750), bool splitScreenMode = false, bool minTextAdapt = false, bool scaleByHeight = false}) → void
屏幕适配 ScreenUtil 初始化
sf(double fontSize) double
字体
sh(double height) double
高度
sr(double r) double
圆角
sw(double width) double
宽度
sz(double size) double
同高/同宽,比如 四方形