Showing
1 changed file
with
1 additions
and
1 deletions
@@ -52,7 +52,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart'; | @@ -52,7 +52,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart'; | ||
52 | void main() { | 52 | void main() { |
53 | WidgetsFlutterBinding.ensureInitialized(); | 53 | WidgetsFlutterBinding.ensureInitialized(); |
54 | //设置适配尺寸 (填入设计稿中设备的屏幕尺寸) 此处假如设计稿是按iPhone6的尺寸设计的(iPhone6 750*1334) | 54 | //设置适配尺寸 (填入设计稿中设备的屏幕尺寸) 此处假如设计稿是按iPhone6的尺寸设计的(iPhone6 750*1334) |
55 | - ScreenUtil.init(designSize: Size(750, 1334), allowFontScaling: false); | 55 | + ScreenUtil.init(context,designSize: Size(750, 1334), allowFontScaling: false); |
56 | runApp(MyApp()); | 56 | runApp(MyApp()); |
57 | } | 57 | } |
58 | 58 |
-
Please register or login to post a comment