修复行情页BTC/ETH价格文字溢出:用FittedBox自适应缩放
This commit is contained in:
@@ -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,漲綠背景
|
||||
|
||||
Reference in New Issue
Block a user