[pve-devel] [PATCH pve_flutter_frontend] fix: ui: overflow error when `pending` chip comes to view
Shan Shaji
s.shaji at proxmox.com
Thu Jun 12 11:53:31 CEST 2025
When the pending chip appears after enabling an option from the options
page, Flutter throws an overflow error, causing the chip to render
on top of the Switch widget due to insufficient space between
the title and the switch toggle.
To resolve this, modify the layout so that the pending chip widget
is rendered in a column instead of a row.
Steps to reproduce the issue:
- Navigate to the options tab of any VM.
- Enable the "KVM hardware virtualization" option.
- You will encounter a render flex error.
Signed-off-by: Shan Shaji <s.shaji at proxmox.com>
---
lib/widgets/pve_config_switch_list_tile.dart | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/widgets/pve_config_switch_list_tile.dart b/lib/widgets/pve_config_switch_list_tile.dart
index af02ee6..c209fbe 100644
--- a/lib/widgets/pve_config_switch_list_tile.dart
+++ b/lib/widgets/pve_config_switch_list_tile.dart
@@ -32,8 +32,8 @@ class PveConfigSwitchListTile extends StatelessWidget {
Widget? _getTitle() {
if (pending != null) {
- return Row(
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ return Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
children: [
title!,
Chip(
--
2.39.5 (Apple Git-154)
More information about the pve-devel
mailing list