111
This commit is contained in:
@@ -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,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user