This commit is contained in:
sion
2026-04-07 01:05:05 +08:00
parent edad10ff06
commit 5ca1274607
83 changed files with 1561 additions and 1241 deletions

View File

@@ -3,10 +3,10 @@ import '../../../../core/theme/app_color_scheme.dart';
import '../../../../core/theme/app_spacing.dart';
import '../../../../core/theme/app_theme.dart';
/// 金额输入框件(含超提示)
/// 金額輸入框件(含超提示)
///
/// 设计稿bg-tertiary角md高48。
/// 入金额超过可用 USDT 余额时显示警告提示。
/// 設計稿bg-tertiary角md高48。
/// 入金額超過可用 USDT 餘額時顯示警告提示。
class AmountInput extends StatefulWidget {
final TextEditingController amountController;
final String maxAmount;
@@ -63,7 +63,7 @@ class _AmountInputState extends State<AmountInput> {
Container(
height: 48,
decoration: BoxDecoration(
color: colorScheme.surfaceContainerHighest.withOpacity(0.5), // 整透明度
color: colorScheme.surfaceContainerHighest.withOpacity(0.5), // 調整透明度
borderRadius: BorderRadius.circular(AppRadius.md),
),
child: TextField(
@@ -74,7 +74,7 @@ class _AmountInputState extends State<AmountInput> {
fontWeight: FontWeight.w400,
),
decoration: InputDecoration(
hintText: '请输入金',
hintText: '請輸入金',
hintStyle: AppTextStyles.numberMedium(context).copyWith(
fontWeight: FontWeight.w400,
color: colorScheme.onSurfaceVariant.withOpacity(0.5),
@@ -94,7 +94,7 @@ class _AmountInputState extends State<AmountInput> {
Icon(Icons.error_outline, size: 13, color: warningColor),
SizedBox(width: AppSpacing.xs),
Text(
'超出可用USDT余额',
'超出可用USDT餘額',
style: AppTextStyles.bodySmall(context).copyWith(
color: warningColor,
),