File tree Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -46,9 +46,9 @@ void main() => runApp(MyApp());
46
46
class MyApp extends StatelessWidget {
47
47
@override
48
48
Widget build(BuildContext context) {
49
- //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 )
49
+ //Set the fit size (fill in the screen size of the device in the design,in dp )
50
50
return ScreenUtilInit(
51
- designSize: Size(750, 1334 ),
51
+ designSize: Size(360, 690 ),
52
52
allowFontScaling: false,
53
53
child: MaterialApp(
54
54
...
Original file line number Diff line number Diff line change @@ -54,9 +54,9 @@ void main() => runApp(MyApp());
54
54
class MyApp extends StatelessWidget {
55
55
@override
56
56
Widget build(BuildContext context) {
57
- //设置适配尺寸 (填入设计稿中设备的屏幕尺寸) 此处假如设计稿是按iPhone6的尺寸设计的(iPhone6 750*1334 )
57
+ //设置适配尺寸 (填入设计稿中设备的屏幕尺寸,单位dp )
58
58
return ScreenUtilInit(
59
- designSize: Size(750, 1334 ),
59
+ designSize: Size(360, 690 ),
60
60
allowFontScaling: false,
61
61
child: MaterialApp(
62
62
...
Original file line number Diff line number Diff line change @@ -50,9 +50,9 @@ void main() => runApp(MyApp());
50
50
class MyApp extends StatelessWidget {
51
51
@override
52
52
Widget build(BuildContext context) {
53
- //Preencha o tamanho da tela do dispositivo no protótipo de design
53
+ //Preencha o tamanho da tela do dispositivo no protótipo de design , in dp
54
54
return ScreenUtilInit(
55
- designSize: Size(750, 1334 ),
55
+ designSize: Size(360, 690 ),
56
56
allowFontScaling: false,
57
57
child: MaterialApp(
58
58
...
Original file line number Diff line number Diff line change 2
2
# This is a generated file; do not edit or check into version control.
3
3
export " FLUTTER_ROOT=/Users/lizhuoyuan/Development/flutter"
4
4
export " FLUTTER_APPLICATION_PATH=/Users/lizhuoyuan/Development/Project/flutter_screenutil/example"
5
- export " FLUTTER_TARGET=lib/main.dart"
5
+ export " FLUTTER_TARGET=/Users/lizhuoyuan/Development/Project/flutter_screenutil/example/ lib/main.dart"
6
6
export " FLUTTER_BUILD_DIR=build"
7
7
export " SYMROOT=${SOURCE_ROOT} /../build/ios"
8
8
export " OTHER_LDFLAGS=$( inherited) -framework Flutter"
9
9
export " FLUTTER_FRAMEWORK_DIR=/Users/lizhuoyuan/Development/flutter/bin/cache/artifacts/engine/ios"
10
10
export " FLUTTER_BUILD_NAME=1.0.0"
11
11
export " FLUTTER_BUILD_NUMBER=1"
12
+ export " DART_DEFINES=flutter.inspector.structuredErrors%3Dtrue"
12
13
export " DART_OBFUSCATION=false"
13
- export " TRACK_WIDGET_CREATION=false "
14
+ export " TRACK_WIDGET_CREATION=true "
14
15
export " TREE_SHAKE_ICONS=false"
15
16
export " PACKAGE_CONFIG=.packages"
You can’t perform that action at this time.
0 commit comments