調整 Profile Card 字型排版並修正英文使用者名稱溢位
Background
PR #310 將字型來源從 google_fonts 改為內建 NotoSansTC[wght].ttf(variable font)。
該 PR 的 follow-up 有提到要調整 profile card 版面,並解決英文姓名溢位問題。
Reference:
Problem
- 英文使用者名稱在 profile card 可能發生 overflow
- 改用 variable font 後,現有字重/行高/spacing 未針對新字型特性最佳化
Scope
- 檢視
lib/screens/main/profile/profile_card.dart 的字級、字重、行高、寬度分配
- 對 username text 增加穩定的 overflow 策略(例如
maxLines + TextOverflow.ellipsis)
- 必要時調整 avatar / paddings / layout constraints,避免破版
- 補充英文長字串案例測試(Widget test)
調整 Profile Card 字型排版並修正英文使用者名稱溢位
Background
PR #310 將字型來源從
google_fonts改為內建NotoSansTC[wght].ttf(variable font)。該 PR 的 follow-up 有提到要調整 profile card 版面,並解決英文姓名溢位問題。
Reference:
Problem
Scope
lib/screens/main/profile/profile_card.dart的字級、字重、行高、寬度分配maxLines+TextOverflow.ellipsis)