diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index f746519a..9149b70a 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -402,7 +402,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin\n"; }; 9740EEB61CF901F6004384FC /* Run Script */ = { isa = PBXShellScriptBuildPhase; diff --git a/lib/login/login_page.dart b/lib/login/login_page.dart index 10e95e7c..280d79fb 100644 --- a/lib/login/login_page.dart +++ b/lib/login/login_page.dart @@ -303,7 +303,7 @@ class _MyLoginPageState extends State with TickerProviderStateMixin { }); Future.delayed(Duration(seconds: 2), () { EasyLoading.dismiss(); - if (value.isSuccess) { + if (value !=null && value.isSuccess) { saveUserJson(value.data); eventBus.fire(EventType(3)); diff --git a/pubspec.lock b/pubspec.lock index 29de0235..5fde1375 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -126,7 +126,7 @@ packages: name: cupertino_icons url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.3" + version: "1.0.4" dio: dependency: "direct main" description: @@ -321,7 +321,7 @@ packages: name: fluwx url: "https://pub.flutter-io.cn" source: hosted - version: "3.6.1+3" + version: "3.6.1+4" font_awesome_flutter: dependency: "direct main" description: @@ -363,7 +363,7 @@ packages: name: image_pickers url: "https://pub.flutter-io.cn" source: hosted - version: "2.0.0+1" + version: "2.0.0+2" intl: dependency: "direct main" description: