提交 85dfb48e 编写于 作者: 李卓原

优化example

上级 92a25c6f
......@@ -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'),
......
demo_en.png

84.4 KB | W: | H:

demo_en.png

116.9 KB | W: | H:

demo_en.png
demo_en.png
demo_en.png
demo_en.png
  • 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'),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册