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,9 +3,9 @@ import '../../../../core/theme/app_color_scheme.dart';
import '../../../../core/theme/app_spacing.dart';
import '../../../../core/theme/app_theme.dart';
/// 交易按钮组
/// 交易按鈕組
///
/// CTA 入/出按。profit-green底 / sell-red底角lg高48入白字/卖出红字16px bold。
/// CTA 入/出按。profit-green底 / sell-red底角lg高48入白字/賣出紅字16px bold。
class TradeButton extends StatelessWidget {
final bool isBuy;
final String? coinCode;
@@ -27,7 +27,7 @@ class TradeButton extends StatelessWidget {
final colorScheme = Theme.of(context).colorScheme;
final fillColor =
isBuy ? AppColorScheme.buyButtonFill : AppColorScheme.sellButtonFill;
// 入按文字白色,出按文字为红
// 入按文字白色,出按文字為紅
final textColor = isBuy
? Colors.white
: (enabled ? AppColorScheme.sellButtonFill : colorScheme.onSurface.withOpacity(0.3));
@@ -52,7 +52,7 @@ class TradeButton extends StatelessWidget {
),
)
: Text(
'${isBuy ? '' : ''} ${coinCode ?? ""}',
'${isBuy ? '' : ''} ${coinCode ?? ""}',
style: AppTextStyles.headlineLarge(context).copyWith(
color: enabled
? textColor