Showing
1 changed file
with
1 additions
and
1 deletions
@@ -45,7 +45,7 @@ Please set the size of the design draft before use, the width and height of the | @@ -45,7 +45,7 @@ Please set the size of the design draft before use, the width and height of the | ||
45 | void main() { | 45 | void main() { |
46 | WidgetsFlutterBinding.ensureInitialized(); | 46 | WidgetsFlutterBinding.ensureInitialized(); |
47 | //Set the fit size (fill in the screen size of the device in the design) If the design is based on the size of the iPhone6 (iPhone6 750*1334) | 47 | //Set the fit size (fill in the screen size of the device in the design) If the design is based on the size of the iPhone6 (iPhone6 750*1334) |
48 | - ScreenUtil.init(designSize: Size(750, 1334), allowFontScaling: false); | 48 | + ScreenUtil.init(context, designSize: Size(750, 1334), allowFontScaling: false); |
49 | runApp(MyApp()); | 49 | runApp(MyApp()); |
50 | } | 50 | } |
51 | 51 |
-
Please register or login to post a comment