fix(mobile): 调整火柴人终点位置,停在红旗左边

🤖 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 02:14:27 -08:00
parent a823490c96
commit 7d1a392d9e
1 changed files with 5 additions and 5 deletions

View File

@ -236,12 +236,12 @@ class _StickmanRaceWidgetState extends State<StickmanRaceWidget>
final trackHeight = usableHeight / total;
final verticalPosition = rank * trackHeight + 10;
//
// = (65) + (5) = 70
// = = containerWidth - 8(right) - 24(flagWidth) = containerWidth - 32
// 60 left = - 60 = containerWidth - 92
// 50maxWidth:60
// : right=8, width=24, = containerWidth - 32
// : stickmanLeft + 50 = containerWidth - 32
// endX = containerWidth - 82
const double startX = 70.0;
final double endX = containerWidth - 92.0; // left
final double endX = containerWidth - 82.0;
final double stickmanLeft = startX + (endX - startX) * progress;
return AnimatedBuilder(