修复行情页BTC/ETH价格文字溢出:用FittedBox自适应缩放
This commit is contained in:
@@ -37,6 +37,6 @@ _flutter.buildConfig = {"engineRevision":"e4b8dca3f1b4ede4c30371002441c88c12187e
|
|||||||
|
|
||||||
_flutter.loader.load({
|
_flutter.loader.load({
|
||||||
serviceWorkerSettings: {
|
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
@@ -144,9 +144,13 @@ class _CoinRow extends StatelessWidget {
|
|||||||
Column(
|
Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.end,
|
crossAxisAlignment: CrossAxisAlignment.end,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
FittedBox(
|
||||||
price,
|
fit: BoxFit.scaleDown,
|
||||||
style: AppTextStyles.numberMedium(context),
|
alignment: Alignment.centerRight,
|
||||||
|
child: Text(
|
||||||
|
price,
|
||||||
|
style: AppTextStyles.numberMedium(context),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
change,
|
change,
|
||||||
|
|||||||
@@ -37,9 +37,15 @@ class PriceCard extends StatelessWidget {
|
|||||||
// 價格行:大號價格 + 漲跌幅徽章
|
// 價格行:大號價格 + 漲跌幅徽章
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Flexible(
|
||||||
coin.formattedPrice,
|
child: FittedBox(
|
||||||
style: AppTextStyles.numberLarge(context).copyWith(fontSize: 32),
|
fit: BoxFit.scaleDown,
|
||||||
|
alignment: Alignment.centerLeft,
|
||||||
|
child: Text(
|
||||||
|
coin.formattedPrice,
|
||||||
|
style: AppTextStyles.numberLarge(context).copyWith(fontSize: 32),
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(width: AppSpacing.sm),
|
const SizedBox(width: AppSpacing.sm),
|
||||||
// 漲跌幅徽章 - 圓角sm,漲綠背景
|
// 漲跌幅徽章 - 圓角sm,漲綠背景
|
||||||
|
|||||||
Reference in New Issue
Block a user