Conversation
…t cell Signed-off-by: Hsukqi Lee <team@tsinbei.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更说明 / What & Why
「我的」页头部统计行三个
Expanded(_StatCell)三等分宽度,余额格内的AmountText是maxLines: 1 + ellipsis,长余额(如带币种符号的千万级金额)在 1/3 宽度内被截断成省略号(#453)。修复:在
_StatCell的金额分支给AmountText包一层FittedBox(fit: BoxFit.scaleDown),长余额整体缩放显示而不是截断——与home_page.dart月度收支汇总(_HeaderCenterSummary.item)对AmountText的既有处理完全一致。非金额单元格行为不变。关联 Issue / Related Issue
Closes #453
自测情况 / Self-tested
flutter analyze无新增告警 / no new warnings(文件内既有 unused_import/dead_code 警告与本改动无关)flutter test通过 / tests pass(Flutter 3.27.3,全量 649 通过,含新增 2 个回归测试)新增测试
test/widgets/mine_balance_fit_test.dart:AmountText在 80px 宽约束下段落宽度被压到约束内(即截断复现);FittedBox包裹后段落按自然宽度排版再整体缩放,完整金额保持可读。贡献者许可条款 / Contributor License Terms