修复行情页BTC/ETH价格文字溢出:用FittedBox自适应缩放

This commit is contained in:
2026-04-16 12:37:30 +08:00
parent d11496490c
commit 05ee46a4c9
4 changed files with 17392 additions and 17382 deletions

View File

@@ -37,6 +37,6 @@ _flutter.buildConfig = {"engineRevision":"e4b8dca3f1b4ede4c30371002441c88c12187e
_flutter.loader.load({
serviceWorkerSettings: {
serviceWorkerVersion: "775073087" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
serviceWorkerVersion: "1498569289" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
}
});

File diff suppressed because one or more lines are too long

View File

@@ -144,9 +144,13 @@ class _CoinRow extends StatelessWidget {
Column(
crossAxisAlignment: CrossAxisAlignment.end,
children: [
Text(
price,
style: AppTextStyles.numberMedium(context),
FittedBox(
fit: BoxFit.scaleDown,
alignment: Alignment.centerRight,
child: Text(
price,
style: AppTextStyles.numberMedium(context),
),
),
Text(
change,

View File

@@ -37,9 +37,15 @@ class PriceCard extends StatelessWidget {
// 價格行:大號價格 + 漲跌幅徽章
Row(
children: [
Text(
coin.formattedPrice,
style: AppTextStyles.numberLarge(context).copyWith(fontSize: 32),
Flexible(
child: FittedBox(
fit: BoxFit.scaleDown,
alignment: Alignment.centerLeft,
child: Text(
coin.formattedPrice,
style: AppTextStyles.numberLarge(context).copyWith(fontSize: 32),
),
),
),
const SizedBox(width: AppSpacing.sm),
// 漲跌幅徽章 - 圓角sm漲綠背景