fix(mobile): update guide_5 to jpg and add AnimatedSize for smooth transition

- 将 guide_5.png 改为 guide_5.jpg
- 使用 AnimatedSize 包裹推荐码输入框,切换选项时平滑过渡,消除跳跃闪烁

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2025-12-09 17:49:07 -08:00
parent 07448b381b
commit 9dd4bb3ac5
3 changed files with 52 additions and 47 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 MiB

View File

@ -62,7 +62,7 @@ class _GuidePageState extends ConsumerState<GuidePage> {
subtitle: '你的资产 · 安全透明 · 不可被篡改', subtitle: '你的资产 · 安全透明 · 不可被篡改',
), ),
GuidePageData( GuidePageData(
imagePath: 'assets/images/guide_5.png', imagePath: 'assets/images/guide_5.jpg',
title: '欢迎加入', title: '欢迎加入',
subtitle: '创建账号前的最后一步 · 请选择是否有推荐人', subtitle: '创建账号前的最后一步 · 请选择是否有推荐人',
), ),
@ -563,9 +563,12 @@ class _WelcomePageContentState extends ConsumerState<_WelcomePageContent> {
), ),
), ),
SizedBox(height: 14.h), SizedBox(height: 14.h),
// // - 使 AnimatedSize
if (_hasReferrer) AnimatedSize(
Container( duration: const Duration(milliseconds: 200),
curve: Curves.easeInOut,
child: _hasReferrer
? Container(
padding: EdgeInsets.symmetric(vertical: 8.h, horizontal: 4.w), padding: EdgeInsets.symmetric(vertical: 8.h, horizontal: 4.w),
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border( border: Border(
@ -611,6 +614,8 @@ class _WelcomePageContentState extends ConsumerState<_WelcomePageContent> {
), ),
], ],
), ),
)
: const SizedBox.shrink(),
), ),
SizedBox(height: 24.h), SizedBox(height: 24.h),
// //