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,26 +493,29 @@ class _PendingActionsPageState extends ConsumerState<PendingActionsPage> {
), ),
// //
if (isCurrent) if (isCurrent)
ElevatedButton( SizedBox(
onPressed: _isExecuting ? null : _executeCurrentAction, width: 72,
style: ElevatedButton.styleFrom( child: ElevatedButton(
backgroundColor: const Color(0xFFD4AF37), onPressed: _isExecuting ? null : _executeCurrentAction,
foregroundColor: Colors.white, style: ElevatedButton.styleFrom(
padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 10), backgroundColor: const Color(0xFFD4AF37),
shape: RoundedRectangleBorder( foregroundColor: Colors.white,
borderRadius: BorderRadius.circular(8), padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 10),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8),
),
), ),
child: _isExecuting
? const SizedBox(
width: 20,
height: 20,
child: CircularProgressIndicator(
strokeWidth: 2,
color: Colors.white,
),
)
: const Text('开始'),
), ),
child: _isExecuting
? const SizedBox(
width: 20,
height: 20,
child: CircularProgressIndicator(
strokeWidth: 2,
color: Colors.white,
),
)
: const Text('开始'),
), ),
], ],
), ),