Showing
1 changed file
with
5 additions
and
3 deletions
| @@ -47,9 +47,11 @@ import 'package:flutter_screenutil/flutter_screenutil.dart'; | @@ -47,9 +47,11 @@ import 'package:flutter_screenutil/flutter_screenutil.dart'; | ||
| 47 | 47 | ||
| 48 | ``` | 48 | ``` |
| 49 | //设置适配尺寸 (填入设计稿中设备的屏幕尺寸) 假如设计稿是按iPhone6的尺寸设计的(iPhone6 750*1334) | 49 | //设置适配尺寸 (填入设计稿中设备的屏幕尺寸) 假如设计稿是按iPhone6的尺寸设计的(iPhone6 750*1334) |
| 50 | -//设置字体大小是否根据系统的“字体大小”辅助选项来进行缩放 , 默认为 false | ||
| 51 | - | ||
| 52 | - ScreenUtil.instance = ScreenUtil(width: 750, height: 1334, allowFontScaling: true)..init(context); | 50 | +//设置字体大小是否根据系统的“字体大小”辅助选项来进行缩放 , 默认为 false , 字体不随着系统的“字体大小”辅助选项来进行缩放 |
| 51 | + ScreenUtil.instance = ScreenUtil()..init(context); | ||
| 52 | + ScreenUtil.instance = ScreenUtil(width: 750, height: 1334)..init(context); | ||
| 53 | + ScreenUtil.instance = ScreenUtil(width: 750, height: 1334, allowFontScaling: false)..init(context); | ||
| 54 | + | ||
| 53 | ``` | 55 | ``` |
| 54 | 56 | ||
| 55 | ### 使用: | 57 | ### 使用: |
-
Please register or login to post a comment