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-16 16:21:18 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0b86faeca83c09a61d18497bd53cbdb25e0e8efb
0b86faec
1 parent
bd576ac7
0.3.0文档
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
README.md
example/lib/main.dart
README.md
View file @
0b86fae
...
...
@@ -75,6 +75,7 @@ Other related apis:
ScreenUtil.screenHeight //Device height
ScreenUtil.bottomBarHeight //Bottom safe zone distance, suitable for buttons with full screen
ScreenUtil.statusBarHeight //Status bar height , Notch will be higher Unit px
ScreenUtil.textScaleFactory //System font scaling factor
ScreenUtil().scaleWidth //The width is enlarged relative to the design draft
ScreenUtil().scaleHeight //Height relative to the magnification of the design draft
...
...
@@ -153,7 +154,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
SizedBox(
height: ScreenUtil().setHeight(200),
),
Text('System font scaling:${ScreenUtil.textScaleFactory}'),
Text('System font scaling
factor
:${ScreenUtil.textScaleFactory}'),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
...
...
example/lib/main.dart
View file @
0b86fae
...
...
@@ -43,7 +43,7 @@ class _MyHomePageState extends State<MyHomePage> {
'Width is enlarged relative to the design draft:
${ScreenUtil().scaleWidth}
'
);
//The width is enlarged relative to the design draft
print
(
'Height is enlarged relative to the design draft:
${ScreenUtil().scaleHeight}
'
);
//The height is enlarged relative to the design draft
print
(
'System font scaling:
${ScreenUtil.textScaleFactory}
'
);
print
(
'System font scaling
factor
:
${ScreenUtil.textScaleFactory}
'
);
return
new
Scaffold
(
appBar:
new
AppBar
(
...
...
@@ -93,7 +93,7 @@ class _MyHomePageState extends State<MyHomePage> {
SizedBox
(
height:
ScreenUtil
().
setHeight
(
200
),
),
Text
(
'System font scaling:
${ScreenUtil.textScaleFactory}
'
),
Text
(
'System font scaling
factor
:
${ScreenUtil.textScaleFactory}
'
),
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
...
...
Please
register
or
login
to post a comment