feat(mobile-app): 临时禁用划转功能

划转功能暂时维护中,点击按钮会显示提示信息。
恢复时将 isTransferDisabled 改为 false 即可。

🤖 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 02:56:26 -08:00
parent 990f218051
commit f7b2267583
1 changed files with 16 additions and 4 deletions

View File

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