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:
parent
f5f0ff2822
commit
c5c4e1667e
|
|
@ -493,12 +493,14 @@ class _PendingActionsPageState extends ConsumerState<PendingActionsPage> {
|
|||
),
|
||||
// 操作按钮
|
||||
if (isCurrent)
|
||||
ElevatedButton(
|
||||
SizedBox(
|
||||
width: 72,
|
||||
child: ElevatedButton(
|
||||
onPressed: _isExecuting ? null : _executeCurrentAction,
|
||||
style: ElevatedButton.styleFrom(
|
||||
backgroundColor: const Color(0xFFD4AF37),
|
||||
foregroundColor: Colors.white,
|
||||
padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 10),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 10),
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
),
|
||||
|
|
@ -514,6 +516,7 @@ class _PendingActionsPageState extends ConsumerState<PendingActionsPage> {
|
|||
)
|
||||
: const Text('开始'),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in New Issue