feat(ui): 新增精選卡片漸變色並優化市場頁面設計

This commit is contained in:
2026-04-08 01:58:53 +08:00
parent dc6a8afc9a
commit 9760f7a8a1
5 changed files with 289 additions and 177 deletions

View File

@@ -80,8 +80,8 @@ class _TransferPageState extends State<TransferPage> {
String get _availableBalance =>
_direction == 1 ? _fundBalance : _tradeUsdtBalance;
String get _fromLabel => _direction == 1 ? '资金账户' : '交易账户';
String get _toLabel => _direction == 1 ? '交易账户' : '资金账户';
String get _fromLabel => _direction == 1 ? '資金賬戶' : '交易賬戶';
String get _toLabel => _direction == 1 ? '交易賬戶' : '資金賬戶';
String get _fromBalance => _direction == 1 ? _fundBalance : _tradeUsdtBalance;
String get _toBalance => _direction == 1 ? _tradeUsdtBalance : _fundBalance;
@@ -95,12 +95,12 @@ class _TransferPageState extends State<TransferPage> {
final transferAmount = double.tryParse(amount) ?? 0;
if (transferAmount <= 0) {
_showSnackBar('请输入有效的划转金额');
_showSnackBar('請輸入有效的劃轉金額');
return;
}
if (transferAmount > available) {
_showSnackBar('余额不足');
_showSnackBar('餘額不足');
return;
}
@@ -115,11 +115,11 @@ class _TransferPageState extends State<TransferPage> {
if (mounted) {
if (response.success) {
_amountController.clear();
_showSnackBar('划转成功');
_showSnackBar('劃轉成功');
await Future.delayed(const Duration(milliseconds: 500));
if (mounted) Navigator.of(context).pop(true);
} else {
_showSnackBar(response.message ?? '划转失败');
_showSnackBar(response.message ?? '劃轉失敗');
}
}
} finally {
@@ -171,7 +171,7 @@ class _TransferPageState extends State<TransferPage> {
onPressed: () => Navigator.of(context).pop(),
),
title: Text(
'账户划转',
'賬戶劃轉',
style: AppTextStyles.headlineLarge(context).copyWith(
fontWeight: FontWeight.w600,
),
@@ -339,7 +339,7 @@ class _TransferPageState extends State<TransferPage> {
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
'划转金额',
'劃轉金額',
style: AppTextStyles.bodyMedium(context).copyWith(
color: colorScheme.onSurfaceVariant,
fontWeight: FontWeight.w500,
@@ -422,7 +422,7 @@ class _TransferPageState extends State<TransferPage> {
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
'可用余额',
'可用餘額',
style: AppTextStyles.bodySmall(context).copyWith(
color: colorScheme.onSurfaceVariant,
),
@@ -492,7 +492,7 @@ class _TransferPageState extends State<TransferPage> {
size: 13, color: colorScheme.onSurfaceVariant),
const SizedBox(width: 6),
Text(
'划转即时到账,无需手续费',
'劃轉即時到賬,無需手續費',
style: AppTextStyles.bodySmall(context).copyWith(
color: colorScheme.onSurfaceVariant,
),
@@ -542,7 +542,7 @@ class _TransferPageState extends State<TransferPage> {
),
)
: Text(
'确认划转',
'確認劃轉',
style: TextStyle(
fontSize: 15,
fontWeight: FontWeight.w600,