李卓原

update README.md

... ... @@ -56,18 +56,6 @@ class MyApp extends StatelessWidget {
);
}
}
//fill in the screen size of the device in the design
//default value : width : 360dp , height:690dp , allowFontScaling:false
ScreenUtil.init(constraints);
//The size of the equipment in the design draft(360,690)
ScreenUtil.init(constraints, designSize: Size(360, 690));
//If you want to set the font size is scaled according to the system's "font size" assist option
ScreenUtil.init(constraints, designSize: Size(360, 690), allowFontScaling: true);
```
### Use:
... ...
... ... @@ -64,16 +64,6 @@ class MyApp extends StatelessWidget {
);
}
}
//默认 width : 360dp , height:690dp , allowFontScaling:false
ScreenUtil.init(constraints);
//传入设计稿的尺寸(例如(360,690))
ScreenUtil.init(constraints, designSize: Size(360,690));
//设置字体大小根据系统的“字体大小”辅助选项来进行缩放,默认为false
ScreenUtil.init(constraints, designSize: Size(360,690), allowFontScaling: true);
```
### 使用
... ...
... ... @@ -60,16 +60,6 @@ class MyApp extends StatelessWidget {
);
}
}
//Valor padrão: width : 360dp , height:690dp , allowFontScaling:false
ScreenUtil.init(constraints);
//The size of the equipment in the design draft(360,690)
ScreenUtil.init(constraints, designSize: Size(360,690));
//Se você quer definir que o tamanho da fonte seja ajustado de acordo com a opção "tamanho da fonte" na acessibilidade do sistema
ScreenUtil.init(constraints, designSize: Size(360,690), allowFontScaling: true);
```
### Uso:
... ...