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
李卓原
2019-01-11 11:46:05 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8e590f2ddd9c08b26d1a898ec927a808b9794650
8e590f2d
1 parent
134d76c5
文档优化
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
README.md
README_CN.md
README.md
View file @
8e590f2
...
...
@@ -40,10 +40,12 @@ Please set the width and height of the design draft before use, the width and he
Be sure to set the page in the MaterialApp's home(ie the entry file, just set it once) to ensure that the fit size is set before each use:
```
//fill in the screen size of the device in the design
//default value : width : 1080px , height:1920px , allowFontScaling:false
ScreenUtil.instance = ScreenUtil()..init(context);
//fill in the screen size of the device in the design
//If the design is based on the size of the iPhone6 (iPhone6 750*1334)
ScreenUtil.instance = ScreenUtil(width: 750, height: 1334)..init(context);
...
...
README_CN.md
View file @
8e590f2
...
...
@@ -45,10 +45,12 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
一定在MaterialApp的home中的页面设置(即入口文件,只需设置一次),以保证在每次使用之前设置好了适配尺寸:
```
//填入设计稿中设备的屏幕尺寸
//默认 width : 1080px , height:1920px , allowFontScaling:false
ScreenUtil.instance = ScreenUtil()..init(context);
//
填入设计稿中设备的屏幕尺寸 ,
假如设计稿是按iPhone6的尺寸设计的(iPhone6 750*1334)
//假如设计稿是按iPhone6的尺寸设计的(iPhone6 750*1334)
ScreenUtil.instance = ScreenUtil(width: 750, height: 1334)..init(context);
//设置字体大小根据系统的“字体大小”辅助选项来进行缩放,默认为false : 字体不随着系统的“字体大小”辅助选项来进行缩放
...
...
Please
register
or
login
to post a comment