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
LiZhuoyuan
2021-07-06 10:03:22 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2021-07-06 10:03:22 +0800
Commit
cc171bc5afa1f56be4016a4592a35935f55dac0e
cc171bc5
1 parent
2ab54331
Update README_CN.md
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
README_CN.md
README_CN.md
View file @
cc171bc
...
...
@@ -47,7 +47,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
在使用之前请设置好设计稿的宽度和高度,传入设计稿的宽度和高度(单位随意,但在使用过程中必须保持一致)
一定要进行初始化(只需设置一次),以保证在每次使用之前设置好了适配尺寸:
方式一:
####
方式一:
```
dart
void
main
(
)
=>
runApp
(
MyApp
());
...
...
@@ -74,7 +74,7 @@ class MyApp extends StatelessWidget {
}
```
方式二: 不支持在MaterialApp的theme的textTheme中使用字体适配
####
方式二: 不支持在MaterialApp的theme的textTheme中使用字体适配
**ScreenUtil.init只需在home或者根路由(即第一个flutter页面)中调用一次即可。**
```
...
...
Please
register
or
login
to post a comment