李卓原

全局设置1次

@@ -26,7 +26,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart'; @@ -26,7 +26,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
26 26
27 ### Initialize the setup size 27 ### Initialize the setup size
28 Please set the width and height of the design draft before use, the width and height of the design draft (unit px). 28 Please set the width and height of the design draft before use, the width and height of the design draft (unit px).
29 -Be sure to set the page in the MaterialApp's home to ensure that the fit size is set before each use: 29 +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:
30 30
31 ``` 31 ```
32 //Set the fit size (fill in the screen size of the device in the design) 32 //Set the fit size (fill in the screen size of the device in the design)
@@ -29,7 +29,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart'; @@ -29,7 +29,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
29 29
30 ### 初始化设置尺寸 30 ### 初始化设置尺寸
31 在使用之前请设置好设计稿的宽度和高度,传入设计稿的宽度和高度(单位px) 31 在使用之前请设置好设计稿的宽度和高度,传入设计稿的宽度和高度(单位px)
32 -一定在MaterialApp的home中的页面设置以保证在每次使用之前设置好了适配尺寸: 32 +一定在MaterialApp的home中的页面设置(即入口文件,只需设置一次),以保证在每次使用之前设置好了适配尺寸:
33 33
34 ``` 34 ```
35 //设置适配尺寸 (填入设计稿中设备的屏幕尺寸) 假如设计稿是按iPhone6的尺寸设计的(iPhone6 750*1334) 35 //设置适配尺寸 (填入设计稿中设备的屏幕尺寸) 假如设计稿是按iPhone6的尺寸设计的(iPhone6 750*1334)