Skip to content

Commit 6ae0fcf

Browse files
author
李卓原
committed
update readme
1 parent a21502d commit 6ae0fcf

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ void main() => runApp(MyApp());
4646
class MyApp extends StatelessWidget {
4747
@override
4848
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)
5050
return ScreenUtilInit(
51-
designSize: Size(750, 1334),
51+
designSize: Size(360, 690),
5252
allowFontScaling: false,
5353
child: MaterialApp(
5454
...

README_CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ void main() => runApp(MyApp());
5454
class MyApp extends StatelessWidget {
5555
@override
5656
Widget build(BuildContext context) {
57-
//设置适配尺寸 (填入设计稿中设备的屏幕尺寸) 此处假如设计稿是按iPhone6的尺寸设计的(iPhone6 750*1334)
57+
//设置适配尺寸 (填入设计稿中设备的屏幕尺寸,单位dp)
5858
return ScreenUtilInit(
59-
designSize: Size(750, 1334),
59+
designSize: Size(360, 690),
6060
allowFontScaling: false,
6161
child: MaterialApp(
6262
...

README_PT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ void main() => runApp(MyApp());
5050
class MyApp extends StatelessWidget {
5151
@override
5252
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
5454
return ScreenUtilInit(
55-
designSize: Size(750, 1334),
55+
designSize: Size(360, 690),
5656
allowFontScaling: false,
5757
child: MaterialApp(
5858
...

example/ios/Flutter/flutter_export_environment.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
# This is a generated file; do not edit or check into version control.
33
export "FLUTTER_ROOT=/Users/lizhuoyuan/Development/flutter"
44
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"
66
export "FLUTTER_BUILD_DIR=build"
77
export "SYMROOT=${SOURCE_ROOT}/../build/ios"
88
export "OTHER_LDFLAGS=$(inherited) -framework Flutter"
99
export "FLUTTER_FRAMEWORK_DIR=/Users/lizhuoyuan/Development/flutter/bin/cache/artifacts/engine/ios"
1010
export "FLUTTER_BUILD_NAME=1.0.0"
1111
export "FLUTTER_BUILD_NUMBER=1"
12+
export "DART_DEFINES=flutter.inspector.structuredErrors%3Dtrue"
1213
export "DART_OBFUSCATION=false"
13-
export "TRACK_WIDGET_CREATION=false"
14+
export "TRACK_WIDGET_CREATION=true"
1415
export "TREE_SHAKE_ICONS=false"
1516
export "PACKAGE_CONFIG=.packages"

0 commit comments

Comments
 (0)