Showing
1 changed file
with
1 additions
and
2 deletions
@@ -30,8 +30,7 @@ class _MyHomePageState extends State<MyHomePage> { | @@ -30,8 +30,7 @@ class _MyHomePageState extends State<MyHomePage> { | ||
30 | @override | 30 | @override |
31 | Widget build(BuildContext context) { | 31 | Widget build(BuildContext context) { |
32 | //设置适配尺寸 (填入设计稿中设备的屏幕尺寸) 此处假如设计稿是按iPhone6的尺寸设计的(iPhone6 750*1334) | 32 | //设置适配尺寸 (填入设计稿中设备的屏幕尺寸) 此处假如设计稿是按iPhone6的尺寸设计的(iPhone6 750*1334) |
33 | - ScreenUtil.init(context, width: 750, height: 1334, allowFontScaling: false); | ||
34 | - ScreenUtil.init(context); | 33 | + |
35 | ScreenUtil.init(context, width: 750, height: 1334, allowFontScaling: false); | 34 | ScreenUtil.init(context, width: 750, height: 1334, allowFontScaling: false); |
36 | 35 | ||
37 | return ExampleWidget(title: 'FlutterScreenUtil示例'); | 36 | return ExampleWidget(title: 'FlutterScreenUtil示例'); |
-
Please register or login to post a comment