feat(mobile-app): 启用兑换页面的划转功能

移除划转按钮的临时禁用标志,恢复正常功能。
用户点击划转按钮后将跳转到划转页面。

🤖 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 2026-01-09 08:48:45 -08:00
parent 414fe95d04
commit 96695575d5
1 changed files with 4 additions and 16 deletions

View File

@ -562,29 +562,17 @@ class _TradingPageState extends ConsumerState<TradingPage> {
///
/// USDT 0
/// []
Widget _buildWithdrawButton() {
// []
const bool isTransferDisabled = true;
// 0
final bool canWithdraw = !_isLoading && _usdtBalance > 0 && !isTransferDisabled;
final bool canWithdraw = !_isLoading && _usdtBalance > 0;
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
child: GestureDetector(
onTap: isTransferDisabled
onTap: canWithdraw
? () {
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(
content: Text('划转功能维护中,暂时无法使用'),
backgroundColor: Color(0xFFD4AF37),
),
);
context.push(RoutePaths.withdrawUsdt);
}
: canWithdraw
? () {
context.push(RoutePaths.withdrawUsdt);
}
: null,
: null,
child: Container(
width: double.infinity,
height: 56,