From c927b36917c064c37b23d85d9982e4e6d706db84 Mon Sep 17 00:00:00 2001 From: liyi Date: Thu, 28 Aug 2025 16:24:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=99=BB=E5=BD=95=E9=A1=B5=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/Runner.xcodeproj/project.pbxproj | 65 ++++++++++++++++++++++++---- lib/main.dart | 5 ++- lib/views/login/login_view.dart | 55 +++++++++++++++-------- 3 files changed, 99 insertions(+), 26 deletions(-) diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index 7ddf2bb..285b277 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -82,28 +82,39 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ + 02F70943DBD5A64AFA896289 /* Pods-RunnerTests.release-xhjpre.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release-xhjpre.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release-xhjpre.xcconfig"; sourceTree = ""; }; 031263CFBED2AAE746A59A79 /* xhjDebug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = xhjDebug.xcconfig; path = Flutter/xhjDebug.xcconfig; sourceTree = ""; }; + 03220490A4DAE5DD18B7808D /* Pods-RunnerTests.release-xhjdev.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release-xhjdev.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release-xhjdev.xcconfig"; sourceTree = ""; }; 043E75FBC5BAE43BDB90E715 /* Pods-Runner.debug-sky.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug-sky.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug-sky.xcconfig"; sourceTree = ""; }; 04A5EFE52B54D25EF1BD80C1 /* skyDevDebug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = skyDevDebug.xcconfig; path = Flutter/skyDevDebug.xcconfig; sourceTree = ""; }; 0B7E4F390850F88D0A30EC61 /* xhjDevLaunchScreen.storyboard */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = file.storyboard; name = xhjDevLaunchScreen.storyboard; path = Runner/xhjDevLaunchScreen.storyboard; sourceTree = ""; }; + 0E3F8734D9767C653F3FAD44 /* Pods-RunnerTests.release-skydev.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release-skydev.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release-skydev.xcconfig"; sourceTree = ""; }; 0FAF16A2CEB1CDCB20BC2772 /* Pods-Runner.profile-skypre.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile-skypre.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile-skypre.xcconfig"; sourceTree = ""; }; + 103A5E672934053959F35C56 /* Pods-RunnerTests.release-skyrelease.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release-skyrelease.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release-skyrelease.xcconfig"; sourceTree = ""; }; + 11F89EE2E3EED2E3DD9C86E9 /* Pods-RunnerTests.profile-skypre.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile-skypre.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile-skypre.xcconfig"; sourceTree = ""; }; 1453DAC93CF879A52228589D /* xhjDevDebug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = xhjDevDebug.xcconfig; path = Flutter/xhjDevDebug.xcconfig; sourceTree = ""; }; 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 152AD635A2088A3254E5B277 /* Pods-RunnerTests.debug-xhjpre.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug-xhjpre.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug-xhjpre.xcconfig"; sourceTree = ""; }; 159A7021B439CC23D881BE8B /* xhjReleaseDebug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = xhjReleaseDebug.xcconfig; path = Flutter/xhjReleaseDebug.xcconfig; sourceTree = ""; }; 1762BB277A17EFCD3D9EB55B /* xhjProfile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = xhjProfile.xcconfig; path = Flutter/xhjProfile.xcconfig; sourceTree = ""; }; 1A6ADFF47376D3EF39A06A50 /* Pods-Runner.debug-xhjrelease.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug-xhjrelease.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug-xhjrelease.xcconfig"; sourceTree = ""; }; + 1A80E55948298C26E5470F66 /* Pods-RunnerTests.debug-xhjrelease.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug-xhjrelease.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug-xhjrelease.xcconfig"; sourceTree = ""; }; + 227DE666E965CEBE534C1BF6 /* Pods-RunnerTests.debug-skypre.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug-skypre.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug-skypre.xcconfig"; sourceTree = ""; }; 286A61E75C655C4DBC7AEFA3 /* devLaunchScreen.storyboard */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = file.storyboard; name = devLaunchScreen.storyboard; path = Runner/devLaunchScreen.storyboard; sourceTree = ""; }; + 2C1E340616C269CF61511909 /* Pods-RunnerTests.profile-skyrelease.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile-skyrelease.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile-skyrelease.xcconfig"; sourceTree = ""; }; 2DA6A091FC5350CFAEA9CF00 /* skyDevLaunchScreen.storyboard */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = file.storyboard; name = skyDevLaunchScreen.storyboard; path = Runner/skyDevLaunchScreen.storyboard; sourceTree = ""; }; 2DF5EC0F7DCE5FC09A604CD7 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; 30DDE98C4D8703B5AB7B685E /* skyPreDebug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = skyPreDebug.xcconfig; path = Flutter/skyPreDebug.xcconfig; sourceTree = ""; }; 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 3772067509177DEAEB15096A /* Pods-RunnerTests.release-xhjrelease.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release-xhjrelease.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release-xhjrelease.xcconfig"; sourceTree = ""; }; 387954FC19400CF4D1B7D4F9 /* Pods-Runner.profile-xhj.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile-xhj.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile-xhj.xcconfig"; sourceTree = ""; }; 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 3B72A935FCFAAD621BF3B600 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 3EF53D826B438AEF93E10331 /* Pods-Runner.profile-dev.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile-dev.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile-dev.xcconfig"; sourceTree = ""; }; 400DDA5ABA71AC3571ECDFD8 /* preDebug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = preDebug.xcconfig; path = Flutter/preDebug.xcconfig; sourceTree = ""; }; + 40B80627513965DD3A940E1E /* Pods-RunnerTests.debug-skyrelease.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug-skyrelease.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug-skyrelease.xcconfig"; sourceTree = ""; }; 43593863AAB6C42AE1A1B664 /* Pods-Runner.profile-pre.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile-pre.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile-pre.xcconfig"; sourceTree = ""; }; 44C3A9A4A6B7F782019DC9E4 /* xhjReleaseRelease.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = xhjReleaseRelease.xcconfig; path = Flutter/xhjReleaseRelease.xcconfig; sourceTree = ""; }; 4AF8C5340B988A4AB5593BA1 /* Pods-Runner.profile-skydev.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile-skydev.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile-skydev.xcconfig"; sourceTree = ""; }; @@ -112,6 +123,7 @@ 517C3C0797C305420583FA00 /* Pods-Runner.release-pre.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release-pre.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release-pre.xcconfig"; sourceTree = ""; }; 521739435370021315B3CAB0 /* skyDevRelease.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = skyDevRelease.xcconfig; path = Flutter/skyDevRelease.xcconfig; sourceTree = ""; }; 539C2D3FA6928C05F4C984FE /* xhjDevRelease.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = xhjDevRelease.xcconfig; path = Flutter/xhjDevRelease.xcconfig; sourceTree = ""; }; + 5553C6A467728DD321A3B5E5 /* Pods-RunnerTests.profile-xhjdev.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile-xhjdev.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile-xhjdev.xcconfig"; sourceTree = ""; }; 5704DDAD591945712FD286AB /* Pods-Runner.debug-xhjdev.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug-xhjdev.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug-xhjdev.xcconfig"; sourceTree = ""; }; 5BE5A13FC9E35B42FFFA74DF /* xhjPreLaunchScreen.storyboard */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = file.storyboard; name = xhjPreLaunchScreen.storyboard; path = Runner/xhjPreLaunchScreen.storyboard; sourceTree = ""; }; 5D9C8C08D94D17A41C07E0C2 /* skyPreRelease.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = skyPreRelease.xcconfig; path = Flutter/skyPreRelease.xcconfig; sourceTree = ""; }; @@ -119,6 +131,7 @@ 60FFAA284D5DBE9EE25508B0 /* skyPreLaunchScreen.storyboard */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = file.storyboard; name = skyPreLaunchScreen.storyboard; path = Runner/skyPreLaunchScreen.storyboard; sourceTree = ""; }; 611820587117D6B2F8AFF8D6 /* skyDebug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = skyDebug.xcconfig; path = Flutter/skyDebug.xcconfig; sourceTree = ""; }; 67E6F6C3412AB339172CA451 /* xhjReleaseLaunchScreen.storyboard */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = file.storyboard; name = xhjReleaseLaunchScreen.storyboard; path = Runner/xhjReleaseLaunchScreen.storyboard; sourceTree = ""; }; + 694692FDAF5CB51B684200DB /* Pods-RunnerTests.release-skypre.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release-skypre.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release-skypre.xcconfig"; sourceTree = ""; }; 72EC30EF092E08C4EF183BC3 /* Pods-Runner.debug-pre.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug-pre.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug-pre.xcconfig"; sourceTree = ""; }; 73D318DE025B3B715F0836DE /* xhjLaunchScreen.storyboard */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = file.storyboard; name = xhjLaunchScreen.storyboard; path = Runner/xhjLaunchScreen.storyboard; sourceTree = ""; }; 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; @@ -128,8 +141,11 @@ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 7D7A6233EF2108AD4DA29797 /* xhjDevProfile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = xhjDevProfile.xcconfig; path = Flutter/xhjDevProfile.xcconfig; sourceTree = ""; }; 7EE510D990399212622E0549 /* Pods-Runner.debug-dev.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug-dev.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug-dev.xcconfig"; sourceTree = ""; }; + 7F24ADCE5B7052E0A19C1387 /* Pods-RunnerTests.profile-skydev.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile-skydev.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile-skydev.xcconfig"; sourceTree = ""; }; + 8161D090C95EBDC924250298 /* Pods-RunnerTests.profile-xhjpre.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile-xhjpre.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile-xhjpre.xcconfig"; sourceTree = ""; }; 81DED2D90516855F3B194308 /* skyPreProfile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = skyPreProfile.xcconfig; path = Flutter/skyPreProfile.xcconfig; sourceTree = ""; }; 8340FC20EF2CC5FCD200C7A8 /* skyLaunchScreen.storyboard */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = file.storyboard; name = skyLaunchScreen.storyboard; path = Runner/skyLaunchScreen.storyboard; sourceTree = ""; }; + 84D64E157C4BA3E946C12BE3 /* Pods-RunnerTests.debug-xhjdev.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug-xhjdev.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug-xhjdev.xcconfig"; sourceTree = ""; }; 8E3703788F12596F8E25A8CA /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 926E06CA8F15A766AD877601 /* skyReleaseProfile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = skyReleaseProfile.xcconfig; path = Flutter/skyReleaseProfile.xcconfig; sourceTree = ""; }; 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; @@ -148,6 +164,7 @@ AF5C4914468E0989D0D82A6D /* skyReleaseDebug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = skyReleaseDebug.xcconfig; path = Flutter/skyReleaseDebug.xcconfig; sourceTree = ""; }; AF5EB32017D6DEA63438C7D2 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; B03F184E4E19C6D1CFDFC1B9 /* Pods-Runner.profile-xhjdev.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile-xhjdev.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile-xhjdev.xcconfig"; sourceTree = ""; }; + BCAA375B2D264255CE0E9FC7 /* Pods-RunnerTests.debug-skydev.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug-skydev.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug-skydev.xcconfig"; sourceTree = ""; }; BECFB24D71AD033D1AD26998 /* xhjPreProfile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = xhjPreProfile.xcconfig; path = Flutter/xhjPreProfile.xcconfig; sourceTree = ""; }; C4399A1C32E49BAFDC817DE2 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; C67AF0A7644DDD913055370A /* skyReleaseRelease.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = skyReleaseRelease.xcconfig; path = Flutter/skyReleaseRelease.xcconfig; sourceTree = ""; }; @@ -155,6 +172,7 @@ CFFEE97B583E0A157AC26EBA /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = ""; }; DD1E2291969FACC46115015C /* Pods-Runner.release-xhjpre.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release-xhjpre.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release-xhjpre.xcconfig"; sourceTree = ""; }; DE2BB4D7FB4686B8AED3104D /* devProfile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = devProfile.xcconfig; path = Flutter/devProfile.xcconfig; sourceTree = ""; }; + DFB4FA7E7FD58D28DB571229 /* Pods-RunnerTests.profile-xhjrelease.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile-xhjrelease.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile-xhjrelease.xcconfig"; sourceTree = ""; }; E045491EBE71709DCA299FC1 /* skyRelease.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = skyRelease.xcconfig; path = Flutter/skyRelease.xcconfig; sourceTree = ""; }; E0BA9A4F4B8F7B38C3ECD943 /* Pods-Runner.debug-skypre.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug-skypre.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug-skypre.xcconfig"; sourceTree = ""; }; E37E719EE1C603DF8AB0BAB6 /* Pods-Runner.debug-skyrelease.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug-skyrelease.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug-skyrelease.xcconfig"; sourceTree = ""; }; @@ -244,6 +262,24 @@ 1A6ADFF47376D3EF39A06A50 /* Pods-Runner.debug-xhjrelease.xcconfig */, 5E1FB85329E3B530AB783B54 /* Pods-Runner.profile-xhjrelease.xcconfig */, EBBD1BD37B9334DA85AB9644 /* Pods-Runner.release-xhjrelease.xcconfig */, + BCAA375B2D264255CE0E9FC7 /* Pods-RunnerTests.debug-skydev.xcconfig */, + 7F24ADCE5B7052E0A19C1387 /* Pods-RunnerTests.profile-skydev.xcconfig */, + 0E3F8734D9767C653F3FAD44 /* Pods-RunnerTests.release-skydev.xcconfig */, + 227DE666E965CEBE534C1BF6 /* Pods-RunnerTests.debug-skypre.xcconfig */, + 11F89EE2E3EED2E3DD9C86E9 /* Pods-RunnerTests.profile-skypre.xcconfig */, + 694692FDAF5CB51B684200DB /* Pods-RunnerTests.release-skypre.xcconfig */, + 40B80627513965DD3A940E1E /* Pods-RunnerTests.debug-skyrelease.xcconfig */, + 2C1E340616C269CF61511909 /* Pods-RunnerTests.profile-skyrelease.xcconfig */, + 103A5E672934053959F35C56 /* Pods-RunnerTests.release-skyrelease.xcconfig */, + 84D64E157C4BA3E946C12BE3 /* Pods-RunnerTests.debug-xhjdev.xcconfig */, + 5553C6A467728DD321A3B5E5 /* Pods-RunnerTests.profile-xhjdev.xcconfig */, + 03220490A4DAE5DD18B7808D /* Pods-RunnerTests.release-xhjdev.xcconfig */, + 152AD635A2088A3254E5B277 /* Pods-RunnerTests.debug-xhjpre.xcconfig */, + 8161D090C95EBDC924250298 /* Pods-RunnerTests.profile-xhjpre.xcconfig */, + 02F70943DBD5A64AFA896289 /* Pods-RunnerTests.release-xhjpre.xcconfig */, + 1A80E55948298C26E5470F66 /* Pods-RunnerTests.debug-xhjrelease.xcconfig */, + DFB4FA7E7FD58D28DB571229 /* Pods-RunnerTests.profile-xhjrelease.xcconfig */, + 3772067509177DEAEB15096A /* Pods-RunnerTests.release-xhjrelease.xcconfig */, ); path = Pods; sourceTree = ""; @@ -498,14 +534,10 @@ inputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", ); - inputPaths = ( - ); name = "[CP] Embed Pods Frameworks"; outputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", ); - outputPaths = ( - ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; @@ -535,14 +567,10 @@ inputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist", ); - inputPaths = ( - ); name = "[CP] Copy Pods Resources"; outputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist", ); - outputPaths = ( - ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n"; @@ -659,6 +687,7 @@ /* Begin XCBuildConfiguration section */ 0487248D2E60463A00F4D195 /* Debug-skyDev */ = { isa = XCBuildConfiguration; + baseConfigurationReference = BCAA375B2D264255CE0E9FC7 /* Pods-RunnerTests.debug-skydev.xcconfig */; buildSettings = { PRODUCT_NAME = RunnerTests; }; @@ -666,6 +695,7 @@ }; 0487248E2E60463A00F4D195 /* Profile-skyDev */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 7F24ADCE5B7052E0A19C1387 /* Pods-RunnerTests.profile-skydev.xcconfig */; buildSettings = { PRODUCT_NAME = RunnerTests; }; @@ -673,6 +703,7 @@ }; 0487248F2E60463A00F4D195 /* Release-skyDev */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 0E3F8734D9767C653F3FAD44 /* Pods-RunnerTests.release-skydev.xcconfig */; buildSettings = { PRODUCT_NAME = RunnerTests; }; @@ -680,6 +711,7 @@ }; 048724902E60463A00F4D195 /* Debug-skyPre */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 227DE666E965CEBE534C1BF6 /* Pods-RunnerTests.debug-skypre.xcconfig */; buildSettings = { PRODUCT_NAME = RunnerTests; }; @@ -687,6 +719,7 @@ }; 048724912E60463A00F4D195 /* Profile-skyPre */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 11F89EE2E3EED2E3DD9C86E9 /* Pods-RunnerTests.profile-skypre.xcconfig */; buildSettings = { PRODUCT_NAME = RunnerTests; }; @@ -694,6 +727,7 @@ }; 048724922E60463A00F4D195 /* Release-skyPre */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 694692FDAF5CB51B684200DB /* Pods-RunnerTests.release-skypre.xcconfig */; buildSettings = { PRODUCT_NAME = RunnerTests; }; @@ -701,6 +735,7 @@ }; 048724932E60463A00F4D195 /* Debug-skyRelease */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 40B80627513965DD3A940E1E /* Pods-RunnerTests.debug-skyrelease.xcconfig */; buildSettings = { PRODUCT_NAME = RunnerTests; }; @@ -708,6 +743,7 @@ }; 048724942E60463A00F4D195 /* Profile-skyRelease */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 2C1E340616C269CF61511909 /* Pods-RunnerTests.profile-skyrelease.xcconfig */; buildSettings = { PRODUCT_NAME = RunnerTests; }; @@ -715,6 +751,7 @@ }; 048724952E60463A00F4D195 /* Release-skyRelease */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 103A5E672934053959F35C56 /* Pods-RunnerTests.release-skyrelease.xcconfig */; buildSettings = { PRODUCT_NAME = RunnerTests; }; @@ -722,6 +759,7 @@ }; 048724962E60463A00F4D195 /* Debug-xhjDev */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 84D64E157C4BA3E946C12BE3 /* Pods-RunnerTests.debug-xhjdev.xcconfig */; buildSettings = { PRODUCT_NAME = RunnerTests; }; @@ -729,6 +767,7 @@ }; 048724972E60463A00F4D195 /* Profile-xhjDev */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 5553C6A467728DD321A3B5E5 /* Pods-RunnerTests.profile-xhjdev.xcconfig */; buildSettings = { PRODUCT_NAME = RunnerTests; }; @@ -736,6 +775,7 @@ }; 048724982E60463A00F4D195 /* Release-xhjDev */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 03220490A4DAE5DD18B7808D /* Pods-RunnerTests.release-xhjdev.xcconfig */; buildSettings = { PRODUCT_NAME = RunnerTests; }; @@ -743,6 +783,7 @@ }; 048724992E60463A00F4D195 /* Debug-xhjPre */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 152AD635A2088A3254E5B277 /* Pods-RunnerTests.debug-xhjpre.xcconfig */; buildSettings = { PRODUCT_NAME = RunnerTests; }; @@ -750,6 +791,7 @@ }; 0487249A2E60463A00F4D195 /* Profile-xhjPre */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 8161D090C95EBDC924250298 /* Pods-RunnerTests.profile-xhjpre.xcconfig */; buildSettings = { PRODUCT_NAME = RunnerTests; }; @@ -757,6 +799,7 @@ }; 0487249B2E60463A00F4D195 /* Release-xhjPre */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 02F70943DBD5A64AFA896289 /* Pods-RunnerTests.release-xhjpre.xcconfig */; buildSettings = { PRODUCT_NAME = RunnerTests; }; @@ -764,6 +807,7 @@ }; 0487249C2E60463A00F4D195 /* Debug-xhjRelease */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 1A80E55948298C26E5470F66 /* Pods-RunnerTests.debug-xhjrelease.xcconfig */; buildSettings = { PRODUCT_NAME = RunnerTests; }; @@ -771,6 +815,7 @@ }; 0487249D2E60463A00F4D195 /* Profile-xhjRelease */ = { isa = XCBuildConfiguration; + baseConfigurationReference = DFB4FA7E7FD58D28DB571229 /* Pods-RunnerTests.profile-xhjrelease.xcconfig */; buildSettings = { PRODUCT_NAME = RunnerTests; }; @@ -778,6 +823,7 @@ }; 0487249E2E60463A00F4D195 /* Release-xhjRelease */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 3772067509177DEAEB15096A /* Pods-RunnerTests.release-xhjrelease.xcconfig */; buildSettings = { PRODUCT_NAME = RunnerTests; }; @@ -950,6 +996,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = 5D9C8C08D94D17A41C07E0C2 /* skyPreRelease.xcconfig */; buildSettings = { + DEVELOPMENT_TEAM = ""; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = "Release-skyPre"; @@ -1111,6 +1158,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = 81DED2D90516855F3B194308 /* skyPreProfile.xcconfig */; buildSettings = { + DEVELOPMENT_TEAM = ""; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = "Profile-skyPre"; @@ -1505,6 +1553,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = 30DDE98C4D8703B5AB7B685E /* skyPreDebug.xcconfig */; buildSettings = { + DEVELOPMENT_TEAM = ""; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = "Debug-skyPre"; diff --git a/lib/main.dart b/lib/main.dart index 81185cb..6bc3646 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -2,14 +2,17 @@ import 'dart:async'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; +import 'package:starwork_flutter/base/app_initialization.dart'; import 'app.dart'; import 'flavors.dart'; -void main() { +void main() async { F.appFlavor = Flavor.values.firstWhere( (element) => element.name == appFlavor, ); + await AppInitialization.initializeApp(); + runApp(const App()); } diff --git a/lib/views/login/login_view.dart b/lib/views/login/login_view.dart index 51d8294..f5177a5 100644 --- a/lib/views/login/login_view.dart +++ b/lib/views/login/login_view.dart @@ -9,9 +9,15 @@ class LoginView extends GetView { @override Widget build(BuildContext context) { - return Scaffold( - body: SafeArea( - child: _buildBody(), + return GestureDetector( + onTap: () { + // 收起键盘 + FocusScope.of(context).unfocus(); + }, + child: Scaffold( + body: SafeArea( + child: _buildBody(), + ), ), ); } @@ -23,8 +29,10 @@ class LoginView extends GetView { child: Column( children: [ _buildTitle(), - SizedBox(height: 32.h,), - _buildPhoneInput(), + SizedBox( + height: 32.h, + ), + _buildPhoneInputAndLoginButton(), ], ), ); @@ -59,19 +67,32 @@ class LoginView extends GetView { ); } - _buildPhoneInput() { - return TextField( - keyboardType: TextInputType.phone, - maxLength: 11, - decoration: InputDecoration( - counterText: '', - hintText: '请输入手机号'.tr, - border: const UnderlineInputBorder(), - // 获取焦点时的边框 - focusedBorder: const UnderlineInputBorder( - borderSide: BorderSide(color: Colors.blue), // 🔥 你想要的颜色 + _buildPhoneInputAndLoginButton() { + return Column( + children: [ + TextField( + keyboardType: TextInputType.phone, + maxLength: 11, + decoration: InputDecoration( + counterText: '', + hintText: '请输入手机号码'.tr, + border: const UnderlineInputBorder(), + // 获取焦点时的边框 + focusedBorder: const UnderlineInputBorder( + borderSide: BorderSide(color: Colors.blue), // 🔥 你想要的颜色 + ), + ), ), - ), + ElevatedButton( + onPressed: () {}, + style: ButtonStyle( + + ), + child: Text( + '获取验证码'.tr, + ), + ) + ], ); } }