Skip to content

Commit a4595b0

Browse files
author
李卓原
committed
fix #147
1 parent 43c6492 commit a4595b0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

README_CN.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,7 @@ class _MyHomePageState extends State<MyHomePage> {
208208
@override
209209
Widget build(BuildContext context) {
210210
//设置适配尺寸 (填入设计稿中设备的屏幕尺寸) 此处假如设计稿是按iPhone6的尺寸设计的(iPhone6 750*1334)
211-
ScreenUtil.init(width: 750, height: 1334, allowFontScaling: false);
212-
ScreenUtil.init();
213-
ScreenUtil.init(width: 750, height: 1334, allowFontScaling: false);
211+
ScreenUtil.init(context, width: 750, height: 1334, allowFontScaling: false);
214212
215213
return ExampleWidget(title: 'FlutterScreenUtil示例');
216214
}

0 commit comments

Comments
 (0)