Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
flutter_screenutil
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
李卓原
2018-10-17 15:52:23 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
85dfb48eaee83bde8c16a3c60cb683ebdd525c51
85dfb48e
1 parent
92a25c6f
优化example
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
4 deletions
README.md
README_CN.md
demo_en.png
example/lib/main.dart
example/lib/main_zh.dart
README.md
View file @
85dfb48
...
...
@@ -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'),
...
...
README_CN.md
View file @
85dfb48
...
...
@@ -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
View file @
85dfb48
84.4 KB
|
W:
|
H:
117 KB
|
W:
|
H:
2-up
Swipe
Onion skin
example/lib/main.dart
View file @
85dfb48
...
...
@@ -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'
),
...
...
example/lib/main_zh.dart
View file @
85dfb48
...
...
@@ -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'
),
...
...
Please
register
or
login
to post a comment