From ba3dc7382dbabb02c3ddd113b51983e6e14b7592 Mon Sep 17 00:00:00 2001 From: fmk <fengmeikan@hotmail.com> Date: Mon, 8 Nov 2021 18:24:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/Runner.xcodeproj/project.pbxproj | 2 +- lib/login/login_page.dart | 2 +- pubspec.lock | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) 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<LoginPage> 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: