Showing
1 changed file
with
1 additions
and
3 deletions
@@ -208,9 +208,7 @@ class _MyHomePageState extends State<MyHomePage> { | @@ -208,9 +208,7 @@ class _MyHomePageState extends State<MyHomePage> { | ||
208 | @override | 208 | @override |
209 | Widget build(BuildContext context) { | 209 | Widget build(BuildContext context) { |
210 | //设置适配尺寸 (填入设计稿中设备的屏幕尺寸) 此处假如设计稿是按iPhone6的尺寸设计的(iPhone6 750*1334) | 210 | //设置适配尺寸 (填入设计稿中设备的屏幕尺寸) 此处假如设计稿是按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); |
214 | 212 | ||
215 | return ExampleWidget(title: 'FlutterScreenUtil示例'); | 213 | return ExampleWidget(title: 'FlutterScreenUtil示例'); |
216 | } | 214 | } |
-
Please register or login to post a comment