diff --git a/frontend/mobile-app/assets/images/guide_5.jpg b/frontend/mobile-app/assets/images/guide_5.jpg new file mode 100644 index 00000000..a722d459 Binary files /dev/null and b/frontend/mobile-app/assets/images/guide_5.jpg differ diff --git a/frontend/mobile-app/assets/images/guide_5.png b/frontend/mobile-app/assets/images/guide_5.png deleted file mode 100644 index 992471bf..00000000 Binary files a/frontend/mobile-app/assets/images/guide_5.png and /dev/null differ diff --git a/frontend/mobile-app/lib/features/auth/presentation/pages/guide_page.dart b/frontend/mobile-app/lib/features/auth/presentation/pages/guide_page.dart index 5bdf9bb5..aae0b45d 100644 --- a/frontend/mobile-app/lib/features/auth/presentation/pages/guide_page.dart +++ b/frontend/mobile-app/lib/features/auth/presentation/pages/guide_page.dart @@ -62,7 +62,7 @@ class _GuidePageState extends ConsumerState { subtitle: '你的资产 · 安全透明 · 不可被篡改', ), GuidePageData( - imagePath: 'assets/images/guide_5.png', + imagePath: 'assets/images/guide_5.jpg', title: '欢迎加入', subtitle: '创建账号前的最后一步 · 请选择是否有推荐人', ), @@ -563,55 +563,60 @@ class _WelcomePageContentState extends ConsumerState<_WelcomePageContent> { ), ), SizedBox(height: 14.h), - // 推荐码输入框 - if (_hasReferrer) - Container( - padding: EdgeInsets.symmetric(vertical: 8.h, horizontal: 4.w), - decoration: BoxDecoration( - border: Border( - bottom: BorderSide( - width: 1, - color: Colors.white.withValues(alpha: 0.5), - ), - ), - ), - child: Row( - children: [ - Expanded( - child: TextField( - controller: _referralCodeController, - decoration: InputDecoration( - hintText: '请输入推荐码 / 序列号', - hintStyle: TextStyle( - fontSize: 16.sp, - color: Colors.white.withValues(alpha: 0.6), + // 推荐码输入框 - 使用 AnimatedSize 平滑过渡 + AnimatedSize( + duration: const Duration(milliseconds: 200), + curve: Curves.easeInOut, + child: _hasReferrer + ? Container( + padding: EdgeInsets.symmetric(vertical: 8.h, horizontal: 4.w), + decoration: BoxDecoration( + border: Border( + bottom: BorderSide( + width: 1, + color: Colors.white.withValues(alpha: 0.5), ), - border: InputBorder.none, - isDense: true, - contentPadding: EdgeInsets.zero, - ), - style: TextStyle( - fontSize: 16.sp, - color: Colors.white, - ), - cursorColor: Colors.white, - ), - ), - // 扫码按钮 - GestureDetector( - onTap: _openQrScanner, - child: Padding( - padding: EdgeInsets.only(left: 8.w), - child: Icon( - Icons.camera_alt_outlined, - size: 20.sp, - color: Colors.white.withValues(alpha: 0.8), ), ), - ), - ], - ), - ), + child: Row( + children: [ + Expanded( + child: TextField( + controller: _referralCodeController, + decoration: InputDecoration( + hintText: '请输入推荐码 / 序列号', + hintStyle: TextStyle( + fontSize: 16.sp, + color: Colors.white.withValues(alpha: 0.6), + ), + border: InputBorder.none, + isDense: true, + contentPadding: EdgeInsets.zero, + ), + style: TextStyle( + fontSize: 16.sp, + color: Colors.white, + ), + cursorColor: Colors.white, + ), + ), + // 扫码按钮 + GestureDetector( + onTap: _openQrScanner, + child: Padding( + padding: EdgeInsets.only(left: 8.w), + child: Icon( + Icons.camera_alt_outlined, + size: 20.sp, + color: Colors.white.withValues(alpha: 0.8), + ), + ), + ), + ], + ), + ) + : const SizedBox.shrink(), + ), SizedBox(height: 24.h), // 没有推荐人选项 GestureDetector(