Skip to content

Commit 311978d

Browse files
author
李卓原
committed
2.3
1 parent 108ef8d commit 311978d

File tree

3 files changed

+9
-18
lines changed

3 files changed

+9
-18
lines changed

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,13 @@ Be sure to set the page in the MaterialApp's home/initialRoute(ie the entry file
4949
//fill in the screen size of the device in the design
5050
5151
//default value : width : 1080px , height:1920px , allowFontScaling:false
52-
ScreenUtil.init(context); ~~//flutter_screenuitl < 1.2~~
53-
~~ScreenUtil.init(); //flutter_screenuitl >= 1.2~~
52+
ScreenUtil.init(context);
5453
5554
//If the design is based on the size of the iPhone6 ​​(iPhone6 ​​750*1334)
56-
ScreenUtil.init(context, width: 750, height: 1334); ~~//flutter_screenuitl < 1.2~~
57-
~~ScreenUtil.init(width: 750, height: 1334); //flutter_screenuitl >= 1.2~~
55+
ScreenUtil.init(context, width: 750, height: 1334);
5856
5957
//If you want to set the font size is scaled according to the system's "font size" assist option
60-
ScreenUtil.init(context, width: 750, height: 1334, allowFontScaling: true); ~~//flutter_screenuitl < 1.2~~
61-
~~ScreenUtil.init(width: 750, height: 1334, allowFontScaling: true); //flutter_screenuitl >= 1.2~~
58+
ScreenUtil.init(context, width: 750, height: 1334, allowFontScaling: true);
6259
6360
```
6461

README_CN.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,13 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
5353
//填入设计稿中设备的屏幕尺寸
5454
5555
//默认 width : 1080px , height:1920px , allowFontScaling:false
56-
ScreenUtil.init(context); ~~//flutter_screenuitl < 1.2~~
57-
~~ScreenUtil.init(); //flutter_screenuitl >= 1.2~~
56+
ScreenUtil.init(context);
5857
5958
//假如设计稿是按iPhone6的尺寸设计的(iPhone6 750*1334)
60-
ScreenUtil.init(context, width: 750, height: 1334); ~~//flutter_screenuitl < 1.2~~
61-
~~ScreenUtil.init(width: 750, height: 1334); //flutter_screenuitl >= 1.2~~
59+
ScreenUtil.init(context, width: 750, height: 1334);
6260
6361
//设置字体大小根据系统的“字体大小”辅助选项来进行缩放,默认为false
64-
ScreenUtil.init(context, width: 750, height: 1334, allowFontScaling: true); ~~//flutter_screenuitl < 1.2~~
65-
~~ScreenUtil.init(width: 750, height: 1334, allowFontScaling: true); //flutter_screenuitl >= 1.2~~
62+
ScreenUtil.init(context, width: 750, height: 1334, allowFontScaling: true);
6663
6764
```
6865

README_PT.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,13 @@ Certifique-se de definir as dimensões na paginal inicial do MaterialApp (ou sej
4949
//Preencha o tamanho da tela do dispositivo no protótipo de design
5050
5151
//Valor padrão: width : 1080px , height:1920px , allowFontScaling:false
52-
ScreenUtil.init(context); ~~//flutter_screenuitl < 1.2~~
53-
~~ScreenUtil.init(); //flutter_screenuitl >= 1.2~~
52+
ScreenUtil.init(context);
5453
5554
//Se o design é baseado no iPhone6 ​​(iPhone6 ​​750*1334)
56-
ScreenUtil.init(context, width: 750, height: 1334); ~~//flutter_screenuitl < 1.2~~
57-
~~ScreenUtil.init(width: 750, height: 1334); //flutter_screenuitl >= 1.2~~
55+
ScreenUtil.init(context, width: 750, height: 1334);
5856
5957
//Se você quer definir que o tamanho da fonte seja ajustado de acordo com a opção "tamanho da fonte" na acessibilidade do sistema
60-
ScreenUtil.init(context, width: 750, height: 1334, allowFontScaling: true); ~~//flutter_screenuitl < 1.2~~
61-
~~ScreenUtil.init(width: 750, height: 1334, allowFontScaling: true); //flutter_screenuitl >= 1.2~~
58+
ScreenUtil.init(context, width: 750, height: 1334, allowFontScaling: true);
6259
6360
```
6461

0 commit comments

Comments
 (0)