fix(stickman): 使用顶部对齐实现昵称与数量标签的中心对齐

昵称标签和数量标签高度相同,顶部对齐即可实现水平中心对齐

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2025-12-24 04:06:33 -08:00
parent d4b802502e
commit 50bc5a5a20
1 changed files with 26 additions and 29 deletions

View File

@ -256,12 +256,10 @@ class _StickmanRaceWidgetState extends State<StickmanRaceWidget>
top: verticalPosition - bounce, top: verticalPosition - bounce,
child: Row( child: Row(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.end, // crossAxisAlignment: CrossAxisAlignment.start, //
children: [ children: [
// - // -
Padding( SizedBox(
padding: const EdgeInsets.only(bottom: 38), // 36 + 2
child: SizedBox(
width: nicknameAreaWidth, width: nicknameAreaWidth,
child: Container( child: Container(
padding: const EdgeInsets.symmetric(horizontal: 4, vertical: 2), padding: const EdgeInsets.symmetric(horizontal: 4, vertical: 2),
@ -290,7 +288,6 @@ class _StickmanRaceWidgetState extends State<StickmanRaceWidget>
), ),
), ),
), ),
),
// //
SizedBox( SizedBox(
width: stickmanBoxWidth.clamp(60.0, double.infinity), width: stickmanBoxWidth.clamp(60.0, double.infinity),