李卓原

优化example

... ... @@ -136,7 +136,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
),
],
),
Text('Device width${ScreenUtil.screenWidth}px'),
Text('Device width:${ScreenUtil.screenWidth}px'),
Text('Device height:${ScreenUtil.screenHeight}px'),
Text('Device pixel density:${ScreenUtil.pixelRatio}'),
Text('Bottom safe zone distance:${ScreenUtil.bottomBarHeight}px'),
... ...
... ... @@ -137,7 +137,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
),
],
),
Text('设备宽度${ScreenUtil.screenWidth}px'),
Text('设备宽度:${ScreenUtil.screenWidth}px'),
Text('设备高度:${ScreenUtil.screenHeight}px'),
Text('设备的像素密度:${ScreenUtil.pixelRatio}'),
Text('底部安全区距离:${ScreenUtil.bottomBarHeight}px'),
... ...

84.4 KB | W: | H:

117 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
... ... @@ -77,7 +77,7 @@ class _MyHomePageState extends State<MyHomePage> {
),
],
),
Text('Device width${ScreenUtil.screenWidth}px'),
Text('Device width:${ScreenUtil.screenWidth}px'),
Text('Device height:${ScreenUtil.screenHeight}px'),
Text('Device pixel density:${ScreenUtil.pixelRatio}'),
Text('Bottom safe zone distance:${ScreenUtil.bottomBarHeight}px'),
... ...
... ... @@ -77,7 +77,7 @@ class _MyHomePageState extends State<MyHomePage> {
),
],
),
Text('设备宽度${ScreenUtil.screenWidth}px'),
Text('设备宽度:${ScreenUtil.screenWidth}px'),
Text('设备高度:${ScreenUtil.screenHeight}px'),
Text('设备的像素密度:${ScreenUtil.pixelRatio}'),
Text('底部安全区距离:${ScreenUtil.bottomBarHeight}px'),
... ...