fix(mobile-app): fix layout constraint error in pending actions page

Wrap ElevatedButton in SizedBox(width: 72) to prevent
BoxConstraints infinite width error in Row layout.

🤖 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 2026-01-02 21:02:15 -08:00
parent f5f0ff2822
commit c5c4e1667e
1 changed files with 21 additions and 18 deletions

View File

@ -493,12 +493,14 @@ class _PendingActionsPageState extends ConsumerState<PendingActionsPage> {
), ),
// //
if (isCurrent) if (isCurrent)
ElevatedButton( SizedBox(
width: 72,
child: ElevatedButton(
onPressed: _isExecuting ? null : _executeCurrentAction, onPressed: _isExecuting ? null : _executeCurrentAction,
style: ElevatedButton.styleFrom( style: ElevatedButton.styleFrom(
backgroundColor: const Color(0xFFD4AF37), backgroundColor: const Color(0xFFD4AF37),
foregroundColor: Colors.white, foregroundColor: Colors.white,
padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 10), padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 10),
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8), borderRadius: BorderRadius.circular(8),
), ),
@ -514,6 +516,7 @@ class _PendingActionsPageState extends ConsumerState<PendingActionsPage> {
) )
: const Text('开始'), : const Text('开始'),
), ),
),
], ],
), ),
), ),