Showing
7 changed files
with
17 additions
and
155 deletions
| @@ -190,7 +190,7 @@ Column( | @@ -190,7 +190,7 @@ Column( | ||
| 190 | 190 | ||
| 191 | ### Example: | 191 | ### Example: |
| 192 | 192 | ||
| 193 | -[example demo](/example/lib/main.dart) | 193 | +[example demo](https://github.com/OpenFlutter/flutter_screenutil/blob/master/example/lib/main_zh.dart) |
| 194 | 194 | ||
| 195 | ### Effect: | 195 | ### Effect: |
| 196 | 196 |
| @@ -184,145 +184,12 @@ Column( | @@ -184,145 +184,12 @@ Column( | ||
| 184 | ) | 184 | ) |
| 185 | ``` | 185 | ``` |
| 186 | 186 | ||
| 187 | -```dart | ||
| 188 | -import 'package:flutter/material.dart'; | ||
| 189 | -import 'package:flutter_screenutil/flutter_screenutil.dart'; | ||
| 190 | - | ||
| 191 | -void main() => runApp(MyApp()); | ||
| 192 | - | ||
| 193 | -class MyApp extends StatelessWidget { | ||
| 194 | - @override | ||
| 195 | - Widget build(BuildContext context) { | ||
| 196 | - return LayoutBuilder( | ||
| 197 | - builder: (context, constraints) { | ||
| 198 | - //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) | ||
| 199 | - ScreenUtil.init(constraints, designSize: Size(750, 1334), allowFontScaling: false); | ||
| 200 | - | ||
| 201 | - return MaterialApp( | ||
| 202 | - debugShowCheckedModeBanner: false, | ||
| 203 | - title: 'Flutter_ScreenUtil', | ||
| 204 | - theme: ThemeData( | ||
| 205 | - primarySwatch: Colors.blue, | ||
| 206 | - ), | ||
| 207 | - home: HomePage(title: 'FlutterScreenUtil Demo'), | ||
| 208 | - ); | ||
| 209 | - }, | ||
| 210 | - ); | ||
| 211 | - } | ||
| 212 | -} | ||
| 213 | - | ||
| 214 | -class HomePage extends StatefulWidget { | ||
| 215 | - const HomePage({Key key, this.title}) : super(key: key); | ||
| 216 | - | ||
| 217 | - final String title; | ||
| 218 | - | ||
| 219 | - @override | ||
| 220 | - _HomePageState createState() => _HomePageState(); | ||
| 221 | -} | ||
| 222 | - | ||
| 223 | -class _HomePageState extends State<HomePage> { | ||
| 224 | - @override | ||
| 225 | - Widget build(BuildContext context) { | ||
| 226 | - printScreenInformation(); | ||
| 227 | - return Scaffold( | ||
| 228 | - appBar: AppBar( | ||
| 229 | - title: Text(widget.title), | ||
| 230 | - ), | ||
| 231 | - body: SingleChildScrollView( | ||
| 232 | - child: Column( | ||
| 233 | - crossAxisAlignment: CrossAxisAlignment.center, | ||
| 234 | - children: <Widget>[ | ||
| 235 | - Row( | ||
| 236 | - children: <Widget>[ | ||
| 237 | - Container( | ||
| 238 | - padding: EdgeInsets.all(ScreenUtil().setWidth(10)), | ||
| 239 | - width: ScreenUtil().setWidth(375), | ||
| 240 | - height: ScreenUtil().setHeight(200), | ||
| 241 | - color: Colors.red, | ||
| 242 | - child: Text( | ||
| 243 | - '我的宽度:${0.5.sw}dp \n' | ||
| 244 | - '我的高度:${ScreenUtil().setHeight(200)}dp', | ||
| 245 | - style: TextStyle(color: Colors.white, fontSize: ScreenUtil().setSp(24)), | ||
| 246 | - ), | ||
| 247 | - ), | ||
| 248 | - Container( | ||
| 249 | - padding: EdgeInsets.all(ScreenUtil().setWidth(10)), | ||
| 250 | - width: 375.w, | ||
| 251 | - height: 200.h, | ||
| 252 | - color: Colors.blue, | ||
| 253 | - child: Text( | ||
| 254 | - '我的宽度:${375.w}dp \n' | ||
| 255 | - '我的高度:${200.h}dp', | ||
| 256 | - style: TextStyle(color: Colors.white, fontSize: ScreenUtil().setSp(24))), | ||
| 257 | - ), | ||
| 258 | - ], | ||
| 259 | - ), | ||
| 260 | - Text('设备宽度:${ScreenUtil().screenWidthPx}px'), | ||
| 261 | - Text('设备高度:${ScreenUtil().screenHeightPx}px'), | ||
| 262 | - Text('设备宽度:${ScreenUtil().screenWidth}dp'), | ||
| 263 | - Text('设备高度:${ScreenUtil().screenHeight}dp'), | ||
| 264 | - Text('设备的像素密度:${ScreenUtil().pixelRatio}'), | ||
| 265 | - Text('底部安全区距离:${ScreenUtil().bottomBarHeight}dp'), | ||
| 266 | - Text('状态栏高度:${ScreenUtil().statusBarHeight}dp'), | ||
| 267 | - Text( | ||
| 268 | - '实际宽度的dp与设计稿px的比例:${ScreenUtil().scaleWidth}', | ||
| 269 | - textAlign: TextAlign.center, | ||
| 270 | - ), | ||
| 271 | - Text( | ||
| 272 | - '实际高度的dp与设计稿px的比例:${ScreenUtil().scaleHeight}', | ||
| 273 | - textAlign: TextAlign.center, | ||
| 274 | - ), | ||
| 275 | - SizedBox( | ||
| 276 | - height: 100.h, | ||
| 277 | - ), | ||
| 278 | - Text('系统的字体缩放比例:${ScreenUtil().textScaleFactor}'), | ||
| 279 | - Column( | ||
| 280 | - crossAxisAlignment: CrossAxisAlignment.start, | ||
| 281 | - children: <Widget>[ | ||
| 282 | - Text( | ||
| 283 | - '我的文字大小在设计稿上是24px,不会随着系统的文字缩放比例变化', | ||
| 284 | - style: TextStyle( | ||
| 285 | - color: Colors.black, | ||
| 286 | - fontSize: 24.sp, | ||
| 287 | - ), | ||
| 288 | - ), | ||
| 289 | - Text( | ||
| 290 | - '我的文字大小在设计稿上是24px,会随着系统的文字缩放比例变化', | ||
| 291 | - style: TextStyle( | ||
| 292 | - color: Colors.black, | ||
| 293 | - fontSize: 24.ssp, | ||
| 294 | - ), | ||
| 295 | - ), | ||
| 296 | - ], | ||
| 297 | - ) | ||
| 298 | - ], | ||
| 299 | - ), | ||
| 300 | - ), | ||
| 301 | - ); | ||
| 302 | - } | ||
| 303 | - | ||
| 304 | - void printScreenInformation() { | ||
| 305 | - print('设备宽度:${1.sw}'); | ||
| 306 | - print('设备高度:${1.sh}'); | ||
| 307 | - print('设备的像素密度:${ScreenUtil().pixelRatio}'); | ||
| 308 | - print('底部安全区距离:${ScreenUtil().bottomBarHeight}dp'); | ||
| 309 | - print('状态栏高度:${ScreenUtil().statusBarHeight}dp'); | ||
| 310 | - print('实际宽度的dp与设计稿px的比例:${ScreenUtil().scaleWidth}'); | ||
| 311 | - print('实际高度的dp与设计稿px的比例:${ScreenUtil().scaleHeight}'); | ||
| 312 | - print('宽度和字体相对于设计稿放大的比例:${ScreenUtil().scaleWidth * ScreenUtil().pixelRatio}'); | ||
| 313 | - print('高度相对于设计稿放大的比例:${ScreenUtil().scaleHeight * ScreenUtil().pixelRatio}'); | ||
| 314 | - print('系统的字体缩放比例:${ScreenUtil().textScaleFactor}'); | ||
| 315 | - print('屏幕宽度的0.5:${0.5.sw}'); | ||
| 316 | - print('屏幕高度的0.5:${0.5.sh}'); | ||
| 317 | - } | ||
| 318 | -} | ||
| 319 | - | ||
| 320 | ``` | 187 | ``` |
| 321 | [widget test](https://github.com/OpenFlutter/flutter_screenutil/issues/115) | 188 | [widget test](https://github.com/OpenFlutter/flutter_screenutil/issues/115) |
| 322 | 189 | ||
| 323 | ### 使用示例: | 190 | ### 使用示例: |
| 324 | 191 | ||
| 325 | -[example demo](https://github.com/OpenFlutter/flutter_ScreenUtil/blob/master/example/lib/main_zh.dart) | 192 | +[example demo](https://github.com/OpenFlutter/flutter_screenutil/blob/master/example/lib/main_zh.dart) |
| 326 | 193 | ||
| 327 | 效果: | 194 | 效果: |
| 328 | 195 |
| @@ -333,7 +333,7 @@ class _HomePageState extends State<HomePage> { | @@ -333,7 +333,7 @@ class _HomePageState extends State<HomePage> { | ||
| 333 | 333 | ||
| 334 | ### Exemplo: | 334 | ### Exemplo: |
| 335 | 335 | ||
| 336 | -[Demonstração](/example/lib/main_zh.dart) | 336 | +[Demonstração](https://github.com/OpenFlutter/flutter_screenutil/blob/master/example/lib/main_zh.dart) |
| 337 | 337 | ||
| 338 | Efeito: | 338 | Efeito: |
| 339 | 339 |
| @@ -2,10 +2,14 @@ | @@ -2,10 +2,14 @@ | ||
| 2 | # This is a generated file; do not edit or check into version control. | 2 | # This is a generated file; do not edit or check into version control. |
| 3 | export "FLUTTER_ROOT=/Users/lizhuoyuan/Development/flutter" | 3 | export "FLUTTER_ROOT=/Users/lizhuoyuan/Development/flutter" |
| 4 | export "FLUTTER_APPLICATION_PATH=/Users/lizhuoyuan/Development/Project/flutter_screenutil/example" | 4 | export "FLUTTER_APPLICATION_PATH=/Users/lizhuoyuan/Development/Project/flutter_screenutil/example" |
| 5 | -export "FLUTTER_TARGET=/Users/lizhuoyuan/Development/Project/flutter_screenutil/example/lib/main.dart" | 5 | +export "FLUTTER_TARGET=lib/main.dart" |
| 6 | export "FLUTTER_BUILD_DIR=build" | 6 | export "FLUTTER_BUILD_DIR=build" |
| 7 | export "SYMROOT=${SOURCE_ROOT}/../build/ios" | 7 | export "SYMROOT=${SOURCE_ROOT}/../build/ios" |
| 8 | -export "FLUTTER_FRAMEWORK_DIR=/Users/lizhuoyuan/Development/flutter/bin/cache/artifacts/engine/ios" | 8 | +export "OTHER_LDFLAGS=$(inherited) -framework Flutter" |
| 9 | +export "FLUTTER_FRAMEWORK_DIR=/Users/lizhuoyuan/Development/flutter/bin/cache/artifacts/engine/ios-release" | ||
| 9 | export "FLUTTER_BUILD_NAME=1.0.0" | 10 | export "FLUTTER_BUILD_NAME=1.0.0" |
| 10 | export "FLUTTER_BUILD_NUMBER=1" | 11 | export "FLUTTER_BUILD_NUMBER=1" |
| 11 | -export "TRACK_WIDGET_CREATION=true" | 12 | +export "DART_OBFUSCATION=false" |
| 13 | +export "TRACK_WIDGET_CREATION=false" | ||
| 14 | +export "TREE_SHAKE_ICONS=true" | ||
| 15 | +export "PACKAGE_CONFIG=.packages" |
| @@ -9,10 +9,6 @@ | @@ -9,10 +9,6 @@ | ||
| 9 | /* Begin PBXBuildFile section */ | 9 | /* Begin PBXBuildFile section */ |
| 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; | 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; |
| 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; | 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; |
| 12 | - 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; | ||
| 13 | - 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; | ||
| 14 | - 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; | ||
| 15 | - 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; | ||
| 16 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; | 12 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; |
| 17 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; | 13 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; |
| 18 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; | 14 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; |
| @@ -28,8 +24,6 @@ | @@ -28,8 +24,6 @@ | ||
| 28 | dstPath = ""; | 24 | dstPath = ""; |
| 29 | dstSubfolderSpec = 10; | 25 | dstSubfolderSpec = 10; |
| 30 | files = ( | 26 | files = ( |
| 31 | - 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, | ||
| 32 | - 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, | ||
| 33 | ); | 27 | ); |
| 34 | name = "Embed Frameworks"; | 28 | name = "Embed Frameworks"; |
| 35 | runOnlyForDeploymentPostprocessing = 0; | 29 | runOnlyForDeploymentPostprocessing = 0; |
| @@ -40,13 +34,11 @@ | @@ -40,13 +34,11 @@ | ||
| 40 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; }; | 34 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; }; |
| 41 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; }; | 35 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; }; |
| 42 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; }; | 36 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; }; |
| 43 | - 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = "<group>"; }; | ||
| 44 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; }; | 37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; }; |
| 45 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; }; | 38 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; }; |
| 46 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; }; | 39 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; }; |
| 47 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; }; | 40 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; }; |
| 48 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; }; | 41 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; }; |
| 49 | - 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = "<group>"; }; | ||
| 50 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; | 42 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; |
| 51 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; }; | 43 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; }; |
| 52 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; }; | 44 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; }; |
| @@ -60,8 +52,6 @@ | @@ -60,8 +52,6 @@ | ||
| 60 | isa = PBXFrameworksBuildPhase; | 52 | isa = PBXFrameworksBuildPhase; |
| 61 | buildActionMask = 2147483647; | 53 | buildActionMask = 2147483647; |
| 62 | files = ( | 54 | files = ( |
| 63 | - 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, | ||
| 64 | - 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, | ||
| 65 | ); | 55 | ); |
| 66 | runOnlyForDeploymentPostprocessing = 0; | 56 | runOnlyForDeploymentPostprocessing = 0; |
| 67 | }; | 57 | }; |
| @@ -71,9 +61,7 @@ | @@ -71,9 +61,7 @@ | ||
| 71 | 9740EEB11CF90186004384FC /* Flutter */ = { | 61 | 9740EEB11CF90186004384FC /* Flutter */ = { |
| 72 | isa = PBXGroup; | 62 | isa = PBXGroup; |
| 73 | children = ( | 63 | children = ( |
| 74 | - 3B80C3931E831B6300D905FE /* App.framework */, | ||
| 75 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, | 64 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, |
| 76 | - 9740EEBA1CF902C7004384FC /* Flutter.framework */, | ||
| 77 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, | 65 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, |
| 78 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, | 66 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, |
| 79 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, | 67 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, |
| @@ -87,7 +75,6 @@ | @@ -87,7 +75,6 @@ | ||
| 87 | 9740EEB11CF90186004384FC /* Flutter */, | 75 | 9740EEB11CF90186004384FC /* Flutter */, |
| 88 | 97C146F01CF9000F007C117D /* Runner */, | 76 | 97C146F01CF9000F007C117D /* Runner */, |
| 89 | 97C146EF1CF9000F007C117D /* Products */, | 77 | 97C146EF1CF9000F007C117D /* Products */, |
| 90 | - CF3B75C9A7D2FA2A4C99F110 /* Frameworks */, | ||
| 91 | ); | 78 | ); |
| 92 | sourceTree = "<group>"; | 79 | sourceTree = "<group>"; |
| 93 | }; | 80 | }; |
| @@ -165,6 +152,7 @@ | @@ -165,6 +152,7 @@ | ||
| 165 | developmentRegion = English; | 152 | developmentRegion = English; |
| 166 | hasScannedForEncodings = 0; | 153 | hasScannedForEncodings = 0; |
| 167 | knownRegions = ( | 154 | knownRegions = ( |
| 155 | + English, | ||
| 168 | en, | 156 | en, |
| 169 | Base, | 157 | Base, |
| 170 | ); | 158 | ); |
| @@ -206,7 +194,7 @@ | @@ -206,7 +194,7 @@ | ||
| 206 | ); | 194 | ); |
| 207 | runOnlyForDeploymentPostprocessing = 0; | 195 | runOnlyForDeploymentPostprocessing = 0; |
| 208 | shellPath = /bin/sh; | 196 | shellPath = /bin/sh; |
| 209 | - shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; | 197 | + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; |
| 210 | }; | 198 | }; |
| 211 | 9740EEB61CF901F6004384FC /* Run Script */ = { | 199 | 9740EEB61CF901F6004384FC /* Run Script */ = { |
| 212 | isa = PBXShellScriptBuildPhase; | 200 | isa = PBXShellScriptBuildPhase; |
| @@ -259,7 +247,6 @@ | @@ -259,7 +247,6 @@ | ||
| 259 | /* Begin XCBuildConfiguration section */ | 247 | /* Begin XCBuildConfiguration section */ |
| 260 | 97C147031CF9000F007C117D /* Debug */ = { | 248 | 97C147031CF9000F007C117D /* Debug */ = { |
| 261 | isa = XCBuildConfiguration; | 249 | isa = XCBuildConfiguration; |
| 262 | - baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; | ||
| 263 | buildSettings = { | 250 | buildSettings = { |
| 264 | ALWAYS_SEARCH_USER_PATHS = NO; | 251 | ALWAYS_SEARCH_USER_PATHS = NO; |
| 265 | CLANG_ANALYZER_NONNULL = YES; | 252 | CLANG_ANALYZER_NONNULL = YES; |
| @@ -313,7 +300,6 @@ | @@ -313,7 +300,6 @@ | ||
| 313 | }; | 300 | }; |
| 314 | 97C147041CF9000F007C117D /* Release */ = { | 301 | 97C147041CF9000F007C117D /* Release */ = { |
| 315 | isa = XCBuildConfiguration; | 302 | isa = XCBuildConfiguration; |
| 316 | - baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; | ||
| 317 | buildSettings = { | 303 | buildSettings = { |
| 318 | ALWAYS_SEARCH_USER_PATHS = NO; | 304 | ALWAYS_SEARCH_USER_PATHS = NO; |
| 319 | CLANG_ANALYZER_NONNULL = YES; | 305 | CLANG_ANALYZER_NONNULL = YES; |
| @@ -365,6 +351,7 @@ | @@ -365,6 +351,7 @@ | ||
| 365 | buildSettings = { | 351 | buildSettings = { |
| 366 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | 352 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; |
| 367 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; | 353 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; |
| 354 | + DEVELOPMENT_TEAM = ""; | ||
| 368 | ENABLE_BITCODE = NO; | 355 | ENABLE_BITCODE = NO; |
| 369 | FRAMEWORK_SEARCH_PATHS = ( | 356 | FRAMEWORK_SEARCH_PATHS = ( |
| 370 | "$(inherited)", | 357 | "$(inherited)", |
| @@ -388,6 +375,7 @@ | @@ -388,6 +375,7 @@ | ||
| 388 | buildSettings = { | 375 | buildSettings = { |
| 389 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | 376 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; |
| 390 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; | 377 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; |
| 378 | + DEVELOPMENT_TEAM = E4T4EJGC8Z; | ||
| 391 | ENABLE_BITCODE = NO; | 379 | ENABLE_BITCODE = NO; |
| 392 | FRAMEWORK_SEARCH_PATHS = ( | 380 | FRAMEWORK_SEARCH_PATHS = ( |
| 393 | "$(inherited)", | 381 | "$(inherited)", |
| @@ -16,6 +16,7 @@ class MyApp extends StatelessWidget { | @@ -16,6 +16,7 @@ class MyApp extends StatelessWidget { | ||
| 16 | title: 'Flutter_ScreenUtil', | 16 | title: 'Flutter_ScreenUtil', |
| 17 | theme: ThemeData( | 17 | theme: ThemeData( |
| 18 | primarySwatch: Colors.blue, | 18 | primarySwatch: Colors.blue, |
| 19 | + textTheme: TextTheme(button: TextStyle(fontSize: 80.nsp)), | ||
| 19 | ), | 20 | ), |
| 20 | home: HomePage(title: 'FlutterScreenUtil Demo'), | 21 | home: HomePage(title: 'FlutterScreenUtil Demo'), |
| 21 | ); | 22 | ); |
| @@ -47,6 +48,7 @@ class _HomePageState extends State<HomePage> { | @@ -47,6 +48,7 @@ class _HomePageState extends State<HomePage> { | ||
| 47 | child: Column( | 48 | child: Column( |
| 48 | crossAxisAlignment: CrossAxisAlignment.center, | 49 | crossAxisAlignment: CrossAxisAlignment.center, |
| 49 | children: <Widget>[ | 50 | children: <Widget>[ |
| 51 | + TextButton(onPressed: null, child: Text('text')), | ||
| 50 | Row( | 52 | Row( |
| 51 | children: <Widget>[ | 53 | children: <Widget>[ |
| 52 | // Using Extensions | 54 | // Using Extensions |
| @@ -16,6 +16,7 @@ class MyApp extends StatelessWidget { | @@ -16,6 +16,7 @@ class MyApp extends StatelessWidget { | ||
| 16 | title: 'Flutter_ScreenUtil', | 16 | title: 'Flutter_ScreenUtil', |
| 17 | theme: ThemeData( | 17 | theme: ThemeData( |
| 18 | primarySwatch: Colors.blue, | 18 | primarySwatch: Colors.blue, |
| 19 | + textTheme: TextTheme(button: TextStyle(fontSize: 80.nsp)), | ||
| 19 | ), | 20 | ), |
| 20 | home: HomePage(title: 'FlutterScreenUtil Demo'), | 21 | home: HomePage(title: 'FlutterScreenUtil Demo'), |
| 21 | ); | 22 | ); |
-
Please register or login to post a comment