Flutter中获取设备的宽度和高度
Flutter中获取设备的宽度和高度的方法如下
Widget build(BuildContext context) {
// ScreenUtil.instance = ScreenUtil(width: 750, height: 1334)..init(context);
final size =MediaQuery.of(context).size;
final width =size.width;
final height =size.height;
}