Showing
1 changed file
with
2 additions
and
2 deletions
@@ -47,7 +47,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart'; | @@ -47,7 +47,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart'; | ||
47 | 在使用之前请设置好设计稿的宽度和高度,传入设计稿的宽度和高度(单位随意,但在使用过程中必须保持一致) | 47 | 在使用之前请设置好设计稿的宽度和高度,传入设计稿的宽度和高度(单位随意,但在使用过程中必须保持一致) |
48 | 一定要进行初始化(只需设置一次),以保证在每次使用之前设置好了适配尺寸: | 48 | 一定要进行初始化(只需设置一次),以保证在每次使用之前设置好了适配尺寸: |
49 | 49 | ||
50 | -方式一: | 50 | +#### 方式一: |
51 | ```dart | 51 | ```dart |
52 | void main() => runApp(MyApp()); | 52 | void main() => runApp(MyApp()); |
53 | 53 | ||
@@ -74,7 +74,7 @@ class MyApp extends StatelessWidget { | @@ -74,7 +74,7 @@ class MyApp extends StatelessWidget { | ||
74 | } | 74 | } |
75 | ``` | 75 | ``` |
76 | 76 | ||
77 | -方式二: 不支持在MaterialApp的theme的textTheme中使用字体适配 | 77 | +#### 方式二: 不支持在MaterialApp的theme的textTheme中使用字体适配 |
78 | 78 | ||
79 | **ScreenUtil.init只需在home或者根路由(即第一个flutter页面)中调用一次即可。** | 79 | **ScreenUtil.init只需在home或者根路由(即第一个flutter页面)中调用一次即可。** |
80 | ``` | 80 | ``` |
-
Please register or login to post a comment