优化
This commit is contained in:
@@ -47,9 +47,6 @@ PODS:
|
||||
- Masonry (1.1.0)
|
||||
- MBProgressHUD (1.2.0)
|
||||
- MJExtension (3.4.2)
|
||||
- mobile_scanner (7.0.0):
|
||||
- Flutter
|
||||
- FlutterMacOS
|
||||
- OrderedSet (6.0.3)
|
||||
- package_info_plus (0.4.5):
|
||||
- Flutter
|
||||
@@ -78,7 +75,6 @@ DEPENDENCIES:
|
||||
- flutter_pdfview (from `.symlinks/plugins/flutter_pdfview/ios`)
|
||||
- geolocator_apple (from `.symlinks/plugins/geolocator_apple/darwin`)
|
||||
- image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`)
|
||||
- mobile_scanner (from `.symlinks/plugins/mobile_scanner/darwin`)
|
||||
- package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
|
||||
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
|
||||
- permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`)
|
||||
@@ -125,8 +121,6 @@ EXTERNAL SOURCES:
|
||||
:path: ".symlinks/plugins/geolocator_apple/darwin"
|
||||
image_picker_ios:
|
||||
:path: ".symlinks/plugins/image_picker_ios/ios"
|
||||
mobile_scanner:
|
||||
:path: ".symlinks/plugins/mobile_scanner/darwin"
|
||||
package_info_plus:
|
||||
:path: ".symlinks/plugins/package_info_plus/ios"
|
||||
path_provider_foundation:
|
||||
@@ -162,7 +156,6 @@ SPEC CHECKSUMS:
|
||||
Masonry: 678fab65091a9290e40e2832a55e7ab731aad201
|
||||
MBProgressHUD: 3ee5efcc380f6a79a7cc9b363dd669c5e1ae7406
|
||||
MJExtension: e97d164cb411aa9795cf576093a1fa208b4a8dd8
|
||||
mobile_scanner: 9157936403f5a0644ca3779a38ff8404c5434a93
|
||||
OrderedSet: e539b66b644ff081c73a262d24ad552a69be3a94
|
||||
package_info_plus: af8e2ca6888548050f16fa2f1938db7b5a5df499
|
||||
path_provider_foundation: bb55f6dbba17d0dccd6737fe6f7f34fbd0376880
|
||||
|
||||
@@ -508,8 +508,6 @@
|
||||
"-framework",
|
||||
"\"image_picker_ios\"",
|
||||
"-framework",
|
||||
"\"mobile_scanner\"",
|
||||
"-framework",
|
||||
"\"package_info_plus\"",
|
||||
"-framework",
|
||||
"\"permission_handler_apple\"",
|
||||
@@ -545,8 +543,6 @@
|
||||
"-framework",
|
||||
"\"image_picker_ios\"",
|
||||
"-framework",
|
||||
"\"mobile_scanner\"",
|
||||
"-framework",
|
||||
"\"package_info_plus\"",
|
||||
"-framework",
|
||||
"\"permission_handler_apple\"",
|
||||
@@ -772,8 +768,6 @@
|
||||
"-framework",
|
||||
"\"image_picker_ios\"",
|
||||
"-framework",
|
||||
"\"mobile_scanner\"",
|
||||
"-framework",
|
||||
"\"package_info_plus\"",
|
||||
"-framework",
|
||||
"\"permission_handler_apple\"",
|
||||
@@ -809,8 +803,6 @@
|
||||
"-framework",
|
||||
"\"image_picker_ios\"",
|
||||
"-framework",
|
||||
"\"mobile_scanner\"",
|
||||
"-framework",
|
||||
"\"package_info_plus\"",
|
||||
"-framework",
|
||||
"\"permission_handler_apple\"",
|
||||
@@ -873,8 +865,6 @@
|
||||
"-framework",
|
||||
"\"image_picker_ios\"",
|
||||
"-framework",
|
||||
"\"mobile_scanner\"",
|
||||
"-framework",
|
||||
"\"package_info_plus\"",
|
||||
"-framework",
|
||||
"\"permission_handler_apple\"",
|
||||
|
||||
@@ -140,29 +140,10 @@ class _LoginPageState extends State<LoginPage> with SingleTickerProviderStateMix
|
||||
children: [
|
||||
const SizedBox(height: 30),
|
||||
// 根据 Tab 显示不同的输入框
|
||||
!_isAgreed
|
||||
? GestureDetector(
|
||||
onTap: () => _handleLogin(controller),
|
||||
behavior: HitTestBehavior.opaque,
|
||||
child: Container(
|
||||
width: double.infinity,
|
||||
height: 55.h,
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 24,
|
||||
),
|
||||
alignment: Alignment.centerLeft,
|
||||
child: Text(
|
||||
"请先阅读并同意用户协议和隐私政策",
|
||||
style: TextStyle(
|
||||
color: Colors.grey,
|
||||
fontSize: 16,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
: (_tabController.index == 0
|
||||
? _buildDriverInputFields(controller)
|
||||
: _buildStationInputFields(controller)),
|
||||
if (_isAgreed)
|
||||
(_tabController.index == 0
|
||||
? _buildDriverInputFields(controller)
|
||||
: _buildStationInputFields(controller)),
|
||||
|
||||
const SizedBox(height: 30),
|
||||
// 统一登录按钮
|
||||
@@ -265,10 +246,12 @@ class _LoginPageState extends State<LoginPage> with SingleTickerProviderStateMix
|
||||
child: TextField(
|
||||
controller: controller.phoneController,
|
||||
keyboardType: TextInputType.phone,
|
||||
maxLength: 11,
|
||||
decoration: const InputDecoration(
|
||||
hintText: '请输入手机号',
|
||||
border: InputBorder.none,
|
||||
contentPadding: EdgeInsets.symmetric(horizontal: 24),
|
||||
counterText: ""
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user