From ed25bb2da4187caf113fd162983f2b6e9a877ceb Mon Sep 17 00:00:00 2001 From: sion <450702724@qq.com> Date: Wed, 1 Apr 2026 12:49:17 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E5=AD=97?= =?UTF-8?q?=E5=8F=B7=E4=B8=BB=E9=A2=98=E4=BD=93=E7=B3=BB=EF=BC=8C=E5=8F=82?= =?UTF-8?q?=E8=80=83=E6=88=90=E7=86=9F=E4=BA=A4=E6=98=93=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E6=A0=87=E5=87=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 重构主题字号体系 (h1-h4, body, amount等) - 修复16个页面文件中的硬编码字号 - 新字号层级参考币安/OKX标准 - Display: 22/20/18px (总资产、价格) - Headline: 15/14/13px (标题、副标题) - Body: 13/12/11px (正文、辅助文字) - Label: 11/10/9px (标签) - Number: 22/16/13px (数字) --- .../lib/core/theme/app_text_styles.dart | 24 +-- flutter_monisuo/lib/core/theme/app_theme.dart | 140 +++++++++--------- .../lib/ui/components/asset_card.dart | 2 +- .../lib/ui/components/coin_card.dart | 2 +- .../lib/ui/pages/asset/asset_page.dart | 16 +- .../lib/ui/pages/asset/transfer_page.dart | 6 +- .../lib/ui/pages/auth/register_page.dart | 4 +- .../lib/ui/pages/home/home_page.dart | 24 +-- .../lib/ui/pages/market/market_page.dart | 4 +- .../lib/ui/pages/mine/kyc_page.dart | 2 +- .../lib/ui/pages/mine/mine_page.dart | 6 +- .../ui/pages/onboarding/onboarding_page.dart | 4 +- .../lib/ui/pages/orders/fund_orders_page.dart | 2 +- .../lib/ui/pages/trade/trade_page.dart | 8 +- 14 files changed, 126 insertions(+), 118 deletions(-) diff --git a/flutter_monisuo/lib/core/theme/app_text_styles.dart b/flutter_monisuo/lib/core/theme/app_text_styles.dart index 31cc1f1..3fe2f1a 100644 --- a/flutter_monisuo/lib/core/theme/app_text_styles.dart +++ b/flutter_monisuo/lib/core/theme/app_text_styles.dart @@ -14,7 +14,7 @@ class AppTextStyles { /// H1 - 页面大标题 static const TextStyle h1 = TextStyle( - fontSize: 28, + fontSize: 22, fontWeight: FontWeight.bold, color: AppColors.textPrimary, height: 1.3, @@ -22,7 +22,7 @@ class AppTextStyles { /// H2 - 区块标题 static const TextStyle h2 = TextStyle( - fontSize: 24, + fontSize: 18, fontWeight: FontWeight.bold, color: AppColors.textPrimary, height: 1.3, @@ -30,7 +30,7 @@ class AppTextStyles { /// H3 - 卡片标题 static const TextStyle h3 = TextStyle( - fontSize: 20, + fontSize: 16, fontWeight: FontWeight.w600, color: AppColors.textPrimary, height: 1.4, @@ -38,7 +38,7 @@ class AppTextStyles { /// H4 - 小标题 static const TextStyle h4 = TextStyle( - fontSize: 18, + fontSize: 15, fontWeight: FontWeight.w600, color: AppColors.textPrimary, height: 1.4, @@ -50,7 +50,7 @@ class AppTextStyles { /// Body1 - 主要正文 static const TextStyle body1 = TextStyle( - fontSize: 16, + fontSize: 14, fontWeight: FontWeight.normal, color: AppColors.textPrimary, height: 1.5, @@ -58,7 +58,7 @@ class AppTextStyles { /// Body2 - 次要正文 static const TextStyle body2 = TextStyle( - fontSize: 14, + fontSize: 13, fontWeight: FontWeight.normal, color: AppColors.textPrimary, height: 1.5, @@ -86,7 +86,7 @@ class AppTextStyles { /// Hint - 提示文字 static const TextStyle hint = TextStyle( - fontSize: 14, + fontSize: 13, fontWeight: FontWeight.normal, color: AppColors.textHint, height: 1.4, @@ -98,7 +98,7 @@ class AppTextStyles { /// 金额/价格 - 大号数字 static const TextStyle amount = TextStyle( - fontSize: 32, + fontSize: 22, fontWeight: FontWeight.bold, color: AppColors.textPrimary, height: 1.2, @@ -107,7 +107,7 @@ class AppTextStyles { /// 价格 - 标准数字 static const TextStyle price = TextStyle( - fontSize: 18, + fontSize: 16, fontWeight: FontWeight.w600, color: AppColors.textPrimary, height: 1.3, @@ -116,7 +116,7 @@ class AppTextStyles { /// 价格变化 - 涨跌幅 static const TextStyle priceChange = TextStyle( - fontSize: 14, + fontSize: 13, fontWeight: FontWeight.w600, height: 1.3, fontFeatures: [FontFeature.tabularFigures()], @@ -124,7 +124,7 @@ class AppTextStyles { /// 按钮文字 static const TextStyle button = TextStyle( - fontSize: 16, + fontSize: 14, fontWeight: FontWeight.w600, color: AppColors.textPrimary, height: 1.2, @@ -132,7 +132,7 @@ class AppTextStyles { /// 链接文字 static const TextStyle link = TextStyle( - fontSize: 14, + fontSize: 13, fontWeight: FontWeight.w500, color: AppColors.textLink, decoration: TextDecoration.underline, diff --git a/flutter_monisuo/lib/core/theme/app_theme.dart b/flutter_monisuo/lib/core/theme/app_theme.dart index 3a81d60..cfe5f3c 100644 --- a/flutter_monisuo/lib/core/theme/app_theme.dart +++ b/flutter_monisuo/lib/core/theme/app_theme.dart @@ -26,9 +26,8 @@ class AppTheme { elevation: 0, scrolledUnderElevation: 0, centerTitle: true, - // 【优化】使用 Inter 字体替代 Space Grotesk,提升专业金融感 titleTextStyle: GoogleFonts.inter( - fontSize: 18, + fontSize: 15, fontWeight: FontWeight.w600, color: AppColorScheme.darkOnSurface, ), @@ -81,9 +80,8 @@ class AppTheme { borderRadius: BorderRadius.circular(AppRadius.xxl), ), elevation: 0, - // 【优化】使用 Inter 字体替代 Manrope,提升专业金融感 textStyle: GoogleFonts.inter( - fontSize: 16, + fontSize: 14, fontWeight: FontWeight.w600, ), ), @@ -131,9 +129,8 @@ class AppTheme { elevation: 0, scrolledUnderElevation: 0, centerTitle: true, - // 【优化】使用 Inter 字体替代 Space Grotesk,提升专业金融感 titleTextStyle: GoogleFonts.inter( - fontSize: 18, + fontSize: 16, fontWeight: FontWeight.w600, color: AppColorScheme.lightOnSurface, ), @@ -188,9 +185,8 @@ class AppTheme { borderRadius: BorderRadius.circular(AppRadius.xxl), ), elevation: 0, - // 【优化】使用 Inter 字体替代 Manrope,提升专业金融感 textStyle: GoogleFonts.inter( - fontSize: 16, + fontSize: 14, fontWeight: FontWeight.w600, ), ), @@ -227,30 +223,30 @@ class AppTextStyles { AppTextStyles._(); // ============================================ - // Display - 大标题 + // Display - 核心数字 (价格/余额) + // 参考 Binance/OKX 紧凑专业风格 // ============================================ - /// D1 - 大标题 (48px) - Hero moments + /// D1 - 总资产余额 (22px) static TextStyle displayLarge(BuildContext context) => GoogleFonts.inter( - fontSize: 48, + fontSize: 22, fontWeight: FontWeight.w700, color: Theme.of(context).colorScheme.onSurface, - height: 1.1, - letterSpacing: -0.02, - ); - - /// D2 - 中标题 (36px) - static TextStyle displayMedium(BuildContext context) => GoogleFonts.inter( - fontSize: 36, - fontWeight: FontWeight.w600, - color: Theme.of(context).colorScheme.onSurface, - height: 1.2, + height: 1.15, letterSpacing: -0.01, ); - /// D3 - 小标题 (28px) + /// D2 - 主价格 (20px) + static TextStyle displayMedium(BuildContext context) => GoogleFonts.inter( + fontSize: 20, + fontWeight: FontWeight.w600, + color: Theme.of(context).colorScheme.onSurface, + height: 1.2, + ); + + /// D3 - 次要价格 (18px) static TextStyle displaySmall(BuildContext context) => GoogleFonts.inter( - fontSize: 28, + fontSize: 18, fontWeight: FontWeight.w600, color: Theme.of(context).colorScheme.onSurface, height: 1.25, @@ -260,22 +256,25 @@ class AppTextStyles { // Headline - 标题 // ============================================ + /// 区域标题 (15px) static TextStyle headlineLarge(BuildContext context) => GoogleFonts.inter( - fontSize: 24, + fontSize: 15, fontWeight: FontWeight.w600, color: Theme.of(context).colorScheme.onSurface, height: 1.3, ); + /// 卡片标题 (14px) static TextStyle headlineMedium(BuildContext context) => GoogleFonts.inter( - fontSize: 20, + fontSize: 14, fontWeight: FontWeight.w600, color: Theme.of(context).colorScheme.onSurface, height: 1.35, ); + /// 副标题 (13px) static TextStyle headlineSmall(BuildContext context) => GoogleFonts.inter( - fontSize: 18, + fontSize: 13, fontWeight: FontWeight.w500, color: Theme.of(context).colorScheme.onSurface, height: 1.4, @@ -285,74 +284,83 @@ class AppTextStyles { // Body - 正文 // ============================================ + /// 主要正文 (13px) static TextStyle bodyLarge(BuildContext context) => GoogleFonts.inter( - fontSize: 16, + fontSize: 13, fontWeight: FontWeight.w400, color: Theme.of(context).colorScheme.onSurface, - height: 1.5, + height: 1.45, ); + /// 次要正文 (12px) static TextStyle bodyMedium(BuildContext context) => GoogleFonts.inter( - fontSize: 14, - fontWeight: FontWeight.w400, - color: Theme.of(context).colorScheme.onSurface, - height: 1.5, - ); - - static TextStyle bodySmall(BuildContext context) => GoogleFonts.inter( fontSize: 12, fontWeight: FontWeight.w400, - color: Theme.of(context).colorScheme.onSurfaceVariant, + color: Theme.of(context).colorScheme.onSurface, height: 1.45, ); + /// 辅助文字 (11px) + static TextStyle bodySmall(BuildContext context) => GoogleFonts.inter( + fontSize: 11, + fontWeight: FontWeight.w400, + color: Theme.of(context).colorScheme.onSurfaceVariant, + height: 1.4, + ); + // ============================================ // Label - 标签 // ============================================ + /// 常规标签 (11px) static TextStyle labelLarge(BuildContext context) => GoogleFonts.inter( - fontSize: 14, - fontWeight: FontWeight.w500, - color: Theme.of(context).colorScheme.onSurface, - height: 1.4, - ); - - static TextStyle labelMedium(BuildContext context) => GoogleFonts.inter( - fontSize: 12, - fontWeight: FontWeight.w500, - color: Theme.of(context).colorScheme.onSurfaceVariant, - height: 1.4, - ); - - static TextStyle labelSmall(BuildContext context) => GoogleFonts.inter( fontSize: 11, fontWeight: FontWeight.w500, + color: Theme.of(context).colorScheme.onSurface, + height: 1.35, + ); + + /// 小标签 (10px) + static TextStyle labelMedium(BuildContext context) => GoogleFonts.inter( + fontSize: 10, + fontWeight: FontWeight.w500, color: Theme.of(context).colorScheme.onSurfaceVariant, - height: 1.4, + height: 1.35, + ); + + /// 极小标签 (9px) + static TextStyle labelSmall(BuildContext context) => GoogleFonts.inter( + fontSize: 9, + fontWeight: FontWeight.w500, + color: Theme.of(context).colorScheme.onSurfaceVariant, + height: 1.35, ); // ============================================ // 数字/金额 - Inter (等宽特性) // ============================================ + /// 大号数字 (22px) - 主价格、总资产 static TextStyle numberLarge(BuildContext context) => GoogleFonts.inter( - fontSize: 24, + fontSize: 22, fontWeight: FontWeight.w600, color: Theme.of(context).colorScheme.onSurface, - height: 1.2, + height: 1.15, fontFeatures: const [FontFeature.tabularFigures()], ); + /// 中号数字 (16px) - 次要价格、数量 static TextStyle numberMedium(BuildContext context) => GoogleFonts.inter( - fontSize: 18, + fontSize: 16, fontWeight: FontWeight.w500, color: Theme.of(context).colorScheme.onSurface, height: 1.25, fontFeatures: const [FontFeature.tabularFigures()], ); + /// 小号数字 (13px) - 涨跌幅、小量 static TextStyle numberSmall(BuildContext context) => GoogleFonts.inter( - fontSize: 14, + fontSize: 13, fontWeight: FontWeight.w500, color: Theme.of(context).colorScheme.onSurface, height: 1.3, @@ -365,72 +373,72 @@ class AppTextStyles { @Deprecated('Use displaySmall instead') static const TextStyle heading1 = TextStyle( - fontSize: 28, + fontSize: 18, fontWeight: FontWeight.bold, color: Color(0xFFFFFFFF), ); @Deprecated('Use headlineLarge instead') static const TextStyle heading2 = TextStyle( - fontSize: 24, + fontSize: 15, fontWeight: FontWeight.bold, color: Color(0xFFFFFFFF), ); @Deprecated('Use headlineMedium instead') static const TextStyle heading3 = TextStyle( - fontSize: 18, + fontSize: 14, fontWeight: FontWeight.w600, color: Color(0xFFFFFFFF), ); @Deprecated('Use headlineSmall instead') static const TextStyle heading4 = TextStyle( - fontSize: 16, + fontSize: 13, fontWeight: FontWeight.w600, color: Color(0xFFFFFFFF), ); @Deprecated('Use bodyLarge instead') static const TextStyle body1 = TextStyle( - fontSize: 16, + fontSize: 13, color: Color(0xFFFFFFFF), ); @Deprecated('Use bodyMedium instead') static const TextStyle body2 = TextStyle( - fontSize: 14, + fontSize: 12, color: Color(0xFFFFFFFF), ); @Deprecated('Use labelSmall instead') static const TextStyle caption = TextStyle( - fontSize: 12, + fontSize: 11, color: Color(0xFFA1A1AA), ); @Deprecated('Use labelSmall instead') static const TextStyle hint = TextStyle( - fontSize: 14, + fontSize: 12, color: Color(0xFF71717A), ); @Deprecated('Use numberMedium instead') static const TextStyle price = TextStyle( - fontSize: 20, + fontSize: 16, fontWeight: FontWeight.bold, color: Color(0xFFFFFFFF), ); @Deprecated('Use numberSmall with color instead') static const TextStyle change = TextStyle( - fontSize: 14, + fontSize: 13, fontWeight: FontWeight.w600, ); @Deprecated('Use numberSmall instead') static const TextStyle number = TextStyle( - fontSize: 16, + fontSize: 13, fontWeight: FontWeight.w500, color: Color(0xFFFFFFFF), ); diff --git a/flutter_monisuo/lib/ui/components/asset_card.dart b/flutter_monisuo/lib/ui/components/asset_card.dart index 3f72c1f..78a3b8e 100644 --- a/flutter_monisuo/lib/ui/components/asset_card.dart +++ b/flutter_monisuo/lib/ui/components/asset_card.dart @@ -104,7 +104,7 @@ class AssetCard extends StatelessWidget { style: theme.textTheme.h1.copyWith( fontWeight: FontWeight.bold, color: primaryTextColor, - fontSize: 32, + fontSize: 20, ), ), // 盈亏信息 diff --git a/flutter_monisuo/lib/ui/components/coin_card.dart b/flutter_monisuo/lib/ui/components/coin_card.dart index 084d258..8bfcd9b 100644 --- a/flutter_monisuo/lib/ui/components/coin_card.dart +++ b/flutter_monisuo/lib/ui/components/coin_card.dart @@ -51,7 +51,7 @@ class CoinCard extends StatelessWidget { child: Text( icon ?? code.substring(0, 1), style: TextStyle( - fontSize: 20, + fontSize: 16, color: theme.colorScheme.primary, fontWeight: FontWeight.bold, ), diff --git a/flutter_monisuo/lib/ui/pages/asset/asset_page.dart b/flutter_monisuo/lib/ui/pages/asset/asset_page.dart index efb06e8..b423e41 100644 --- a/flutter_monisuo/lib/ui/pages/asset/asset_page.dart +++ b/flutter_monisuo/lib/ui/pages/asset/asset_page.dart @@ -121,7 +121,7 @@ class _AssetCard extends StatelessWidget { Text( '\$${overview?.totalAsset ?? '0.00'}', style: GoogleFonts.spaceGrotesk( - fontSize: 36, + fontSize: 22, fontWeight: FontWeight.bold, color: Colors.white, ), @@ -284,7 +284,7 @@ class _FundAccountCard extends StatelessWidget { Text( displayBalance, style: GoogleFonts.spaceGrotesk( - fontSize: 28, + fontSize: 20, fontWeight: FontWeight.bold, color: colorScheme.onSurface, ), @@ -413,7 +413,7 @@ class _TradeAccountCard extends StatelessWidget { Text( totalValue.toStringAsFixed(2), style: GoogleFonts.spaceGrotesk( - fontSize: 28, + fontSize: 20, fontWeight: FontWeight.bold, color: colorScheme.onSurface, ), @@ -592,7 +592,7 @@ void _showDepositDialog(BuildContext context) { Text( 'Deposit (充值)', style: GoogleFonts.spaceGrotesk( - fontSize: 24, + fontSize: 16, fontWeight: FontWeight.bold, color: colorScheme.onSurface, ), @@ -708,7 +708,7 @@ void _showDepositResultDialog(BuildContext context, Map data) { Text( '充值申请成功', style: GoogleFonts.spaceGrotesk( - fontSize: 20, + fontSize: 16, fontWeight: FontWeight.bold, color: colorScheme.onSurface, ), @@ -938,7 +938,7 @@ void _showWithdrawDialog(BuildContext context, String? balance) { Text( '提现 (Withdraw)', style: GoogleFonts.spaceGrotesk( - fontSize: 20, + fontSize: 16, fontWeight: FontWeight.bold, color: colorScheme.onSurface, ), @@ -1117,7 +1117,7 @@ void _showResultDialog(BuildContext context, String title, String? message) { children: [ Text(title, style: GoogleFonts.spaceGrotesk( - fontSize: 20, + fontSize: 16, fontWeight: FontWeight.bold, color: colorScheme.onSurface, )), @@ -1174,7 +1174,7 @@ void _showKycRequiredDialog(BuildContext context) { Text( '需要实名认证', style: GoogleFonts.spaceGrotesk( - fontSize: 20, + fontSize: 16, fontWeight: FontWeight.bold, color: colorScheme.onSurface, ), diff --git a/flutter_monisuo/lib/ui/pages/asset/transfer_page.dart b/flutter_monisuo/lib/ui/pages/asset/transfer_page.dart index e364af2..72fbc11 100644 --- a/flutter_monisuo/lib/ui/pages/asset/transfer_page.dart +++ b/flutter_monisuo/lib/ui/pages/asset/transfer_page.dart @@ -152,7 +152,7 @@ class _TransferPageState extends State { title: Text( '资金划转', style: GoogleFonts.spaceGrotesk( - fontSize: 18, + fontSize: 14, fontWeight: FontWeight.bold, color: colorScheme.onSurface, ), @@ -411,14 +411,14 @@ class _TransferPageState extends State { FilteringTextInputFormatter.allow(RegExp(r'^\d*\.?\d{0,8}')), ], style: GoogleFonts.spaceGrotesk( - fontSize: 32, + fontSize: 18, fontWeight: FontWeight.bold, color: colorScheme.onSurface, ), decoration: InputDecoration( hintText: '0.00', hintStyle: GoogleFonts.spaceGrotesk( - fontSize: 32, + fontSize: 18, fontWeight: FontWeight.bold, color: colorScheme.onSurfaceVariant.withOpacity(0.3), ), diff --git a/flutter_monisuo/lib/ui/pages/auth/register_page.dart b/flutter_monisuo/lib/ui/pages/auth/register_page.dart index c9dc437..d885562 100644 --- a/flutter_monisuo/lib/ui/pages/auth/register_page.dart +++ b/flutter_monisuo/lib/ui/pages/auth/register_page.dart @@ -54,7 +54,7 @@ class _RegisterPageState extends State { child: Text( '\u20BF', style: TextStyle( - fontSize: 48, + fontSize: 18, color: AppColorScheme.darkPrimary, ), ), @@ -64,7 +64,7 @@ class _RegisterPageState extends State { child: Text( '注册账号', style: TextStyle( - fontSize: 24, + fontSize: 18, fontWeight: FontWeight.bold, color: AppColorScheme.darkOnSurface, ), diff --git a/flutter_monisuo/lib/ui/pages/home/home_page.dart b/flutter_monisuo/lib/ui/pages/home/home_page.dart index 98b6a6e..2045fc6 100644 --- a/flutter_monisuo/lib/ui/pages/home/home_page.dart +++ b/flutter_monisuo/lib/ui/pages/home/home_page.dart @@ -132,7 +132,7 @@ class _HomePageState extends State Text( '充值', style: GoogleFonts.spaceGrotesk( - fontSize: 24, + fontSize: 16, fontWeight: FontWeight.bold, color: colorScheme.onSurface, ), @@ -251,7 +251,7 @@ class _HomePageState extends State Text( '充值申请成功', style: GoogleFonts.spaceGrotesk( - fontSize: 20, + fontSize: 16, fontWeight: FontWeight.bold, color: colorScheme.onSurface, ), @@ -350,7 +350,7 @@ class _HomePageState extends State children: [ Text(title, style: GoogleFonts.spaceGrotesk( - fontSize: 20, + fontSize: 16, fontWeight: FontWeight.bold, color: colorScheme.onSurface, )), @@ -469,7 +469,7 @@ class _GreetingSection extends StatelessWidget { style: TextStyle( color: colorScheme.onSurface, fontWeight: FontWeight.bold, - fontSize: 24, + fontSize: 18, ), ), ], @@ -644,7 +644,7 @@ class _AssetCardState extends State<_AssetCard> { Text( displayAsset, style: GoogleFonts.spaceGrotesk( - fontSize: 32, + fontSize: 22, fontWeight: FontWeight.bold, color: colorScheme.onSurface, ), @@ -1103,7 +1103,7 @@ class _HoldingsSection extends StatelessWidget { style: TextStyle( color: colorScheme.onSurface, fontWeight: FontWeight.bold, - fontSize: 18, + fontSize: 16, ), ), TextButton( @@ -1116,7 +1116,7 @@ class _HoldingsSection extends StatelessWidget { children: [ Text('资产详情', style: TextStyle( - fontWeight: FontWeight.bold, fontSize: 14)), + fontWeight: FontWeight.bold, fontSize: 13)), const SizedBox(width: 4), Icon(LucideIcons.chevronRight, size: 16, color: colorScheme.primary), @@ -1157,7 +1157,7 @@ class _EmptyHoldings extends StatelessWidget { style: TextStyle( color: colorScheme.onSurface, fontWeight: FontWeight.w600, - fontSize: 16, + fontSize: 14, ), ), SizedBox(height: AppSpacing.sm), @@ -1165,7 +1165,7 @@ class _EmptyHoldings extends StatelessWidget { '快去交易吧~', style: TextStyle( color: colorScheme.onSurfaceVariant, - fontSize: 14, + fontSize: 13, ), ), ], @@ -1245,7 +1245,7 @@ class _HoldingItem extends StatelessWidget { style: TextStyle( color: colorScheme.onSurface, fontWeight: FontWeight.bold, - fontSize: 16, + fontSize: 14, )), Text(holding.quantity, style: TextStyle( @@ -1263,7 +1263,7 @@ class _HoldingItem extends StatelessWidget { style: TextStyle( color: colorScheme.onSurface, fontWeight: FontWeight.w500, - fontSize: 14, + fontSize: 13, )), Text(holding.formattedProfitRate, style: TextStyle( @@ -1439,7 +1439,7 @@ class _ProfitStatCard extends StatelessWidget { ? '${isProfit ? '+' : ''}${value!.toStringAsFixed(2)}' : '--', style: GoogleFonts.spaceGrotesk( - fontSize: 15, + fontSize: 14, fontWeight: FontWeight.bold, color: color, ), diff --git a/flutter_monisuo/lib/ui/pages/market/market_page.dart b/flutter_monisuo/lib/ui/pages/market/market_page.dart index 7b26d60..b72e854 100644 --- a/flutter_monisuo/lib/ui/pages/market/market_page.dart +++ b/flutter_monisuo/lib/ui/pages/market/market_page.dart @@ -189,7 +189,7 @@ class _FeaturedCard extends StatelessWidget { child: Text( coin.displayIcon, style: TextStyle( - fontSize: 22, + fontSize: 18, fontWeight: FontWeight.bold, color: colorScheme.primary, ), @@ -214,7 +214,7 @@ class _FeaturedCard extends StatelessWidget { Text( '\$${coin.formattedPrice}', style: GoogleFonts.spaceGrotesk( - fontSize: 24, + fontSize: 18, fontWeight: FontWeight.bold, color: colorScheme.onSurface, ), diff --git a/flutter_monisuo/lib/ui/pages/mine/kyc_page.dart b/flutter_monisuo/lib/ui/pages/mine/kyc_page.dart index 884fe01..373c405 100644 --- a/flutter_monisuo/lib/ui/pages/mine/kyc_page.dart +++ b/flutter_monisuo/lib/ui/pages/mine/kyc_page.dart @@ -112,7 +112,7 @@ class _KycPageState extends State { Text( '身份验证', style: GoogleFonts.spaceGrotesk( - fontSize: 20, + fontSize: 16, fontWeight: FontWeight.bold, color: colorScheme.onSurface, ), diff --git a/flutter_monisuo/lib/ui/pages/mine/mine_page.dart b/flutter_monisuo/lib/ui/pages/mine/mine_page.dart index b48ee77..bb430b5 100644 --- a/flutter_monisuo/lib/ui/pages/mine/mine_page.dart +++ b/flutter_monisuo/lib/ui/pages/mine/mine_page.dart @@ -109,7 +109,7 @@ class _MinePageState extends State with AutomaticKeepAliveClientMixin builder: (context) => ShadDialog( title: Row( children: [ - _AppLogo(radius: 20, fontSize: 20), + _AppLogo(radius: 20, fontSize: 16), SizedBox(width: AppSpacing.sm + AppSpacing.xs), const Text('模拟所'), ], @@ -196,7 +196,7 @@ class _UserCard extends StatelessWidget { ), ], ), - child: _AppLogo(radius: 36, fontSize: 28, text: user?.avatarText), + child: _AppLogo(radius: 36, fontSize: 20, text: user?.avatarText), ), // 验证徽章 Positioned( @@ -229,7 +229,7 @@ class _UserCard extends StatelessWidget { Text( user?.username ?? '未登录', style: GoogleFonts.spaceGrotesk( - fontSize: 24, + fontSize: 16, fontWeight: FontWeight.bold, color: colorScheme.onSurface, ), diff --git a/flutter_monisuo/lib/ui/pages/onboarding/onboarding_page.dart b/flutter_monisuo/lib/ui/pages/onboarding/onboarding_page.dart index f655439..aeac947 100644 --- a/flutter_monisuo/lib/ui/pages/onboarding/onboarding_page.dart +++ b/flutter_monisuo/lib/ui/pages/onboarding/onboarding_page.dart @@ -242,7 +242,7 @@ class _OnboardingPageState extends State { Text( item.title, style: TextStyle( - fontSize: 28, + fontSize: 18, fontWeight: FontWeight.bold, color: colorScheme.onSurface, letterSpacing: -0.5, @@ -254,7 +254,7 @@ class _OnboardingPageState extends State { item.description, textAlign: TextAlign.center, style: TextStyle( - fontSize: 16, + fontSize: 14, color: colorScheme.onSurfaceVariant, height: 1.6, ), diff --git a/flutter_monisuo/lib/ui/pages/orders/fund_orders_page.dart b/flutter_monisuo/lib/ui/pages/orders/fund_orders_page.dart index 3d15ced..48886ea 100644 --- a/flutter_monisuo/lib/ui/pages/orders/fund_orders_page.dart +++ b/flutter_monisuo/lib/ui/pages/orders/fund_orders_page.dart @@ -200,7 +200,7 @@ class _FundOrdersPageState extends State { Text( '${isDeposit ? '+' : '-'}${order.amount} USDT', style: TextStyle( - fontSize: 20, + fontSize: 16, fontWeight: FontWeight.bold, color: isDeposit ? upColor : downColor, ), diff --git a/flutter_monisuo/lib/ui/pages/trade/trade_page.dart b/flutter_monisuo/lib/ui/pages/trade/trade_page.dart index e3aceec..0c2d65c 100644 --- a/flutter_monisuo/lib/ui/pages/trade/trade_page.dart +++ b/flutter_monisuo/lib/ui/pages/trade/trade_page.dart @@ -331,7 +331,7 @@ class _ConfirmDialog extends StatelessWidget { child: Text( '确认${isBuy ? '买入' : '卖出'}', style: GoogleFonts.spaceGrotesk( - fontSize: 20, + fontSize: 16, fontWeight: FontWeight.bold, color: colorScheme.onSurface, ), @@ -486,7 +486,7 @@ class _CoinSelector extends StatelessWidget { children: [ Text('选择币种', style: GoogleFonts.spaceGrotesk( - fontSize: 20, + fontSize: 16, fontWeight: FontWeight.bold, color: colorScheme.onSurface, )), @@ -679,7 +679,7 @@ class _PriceCard extends StatelessWidget { Text( '\$${coin.formattedPrice}', style: GoogleFonts.spaceGrotesk( - fontSize: 30, + fontSize: 20, fontWeight: FontWeight.bold, color: colorScheme.onSurface, ), @@ -1138,7 +1138,7 @@ class _AmountInputState extends State<_AmountInput> { keyboardType: const TextInputType.numberWithOptions(decimal: true), onChanged: (_) => _checkLimit(), style: GoogleFonts.spaceGrotesk( - fontSize: 22, + fontSize: 18, fontWeight: FontWeight.bold, color: colorScheme.onSurface, ),