public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Shan Shaji <s.shaji@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH pve_flutter_frontend 3/3] cleanup: remove `PveConfigSwitchListTile` in favor of PveConfigListTile
Date: Tue, 23 Sep 2025 11:36:29 +0200	[thread overview]
Message-ID: <20250923093629.119418-4-s.shaji@proxmox.com> (raw)
In-Reply-To: <20250923093629.119418-1-s.shaji@proxmox.com>

Signed-off-by: Shan Shaji <s.shaji@proxmox.com>
---
 lib/widgets/pve_config_switch_list_tile.dart | 50 --------------------
 1 file changed, 50 deletions(-)
 delete mode 100644 lib/widgets/pve_config_switch_list_tile.dart

diff --git a/lib/widgets/pve_config_switch_list_tile.dart b/lib/widgets/pve_config_switch_list_tile.dart
deleted file mode 100644
index c209fbe..0000000
--- a/lib/widgets/pve_config_switch_list_tile.dart
+++ /dev/null
@@ -1,50 +0,0 @@
-import 'package:flutter/material.dart';
-
-class PveConfigSwitchListTile extends StatelessWidget {
-  final bool? value;
-  final int? pending;
-  final bool? defaultValue;
-  final Widget? title;
-  final ValueChanged<bool>? onChanged;
-  final VoidCallback? onDeleted;
-
-  const PveConfigSwitchListTile({
-    super.key,
-    this.value,
-    this.pending,
-    this.defaultValue,
-    this.title,
-    this.onChanged,
-    this.onDeleted,
-  });
-  @override
-  Widget build(BuildContext context) {
-    bool? pBool;
-    if (pending != null) {
-      pBool = pending == 0 ? false : true;
-    }
-    return SwitchListTile(
-      title: _getTitle(),
-      value: pBool ?? value ?? defaultValue!,
-      onChanged: pending != null ? null : onChanged,
-    );
-  }
-
-  Widget? _getTitle() {
-    if (pending != null) {
-      return Column(
-        crossAxisAlignment: CrossAxisAlignment.start,
-        children: [
-          title!,
-          Chip(
-            label: const Text('pending'),
-            backgroundColor: Colors.red,
-            onDeleted: onDeleted,
-          )
-        ],
-      );
-    } else {
-      return title;
-    }
-  }
-}
-- 
2.47.2



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


      parent reply	other threads:[~2025-09-23  9:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-23  9:36 [pve-devel] [PATCH pve_flutter_frontend 0/3] feat: ui: add bottom sheet to show editable options of VMs/CTs Shan Shaji
2025-09-23  9:36 ` [pve-devel] [PATCH pve_flutter_frontend 1/3] cleanup: run `dart format` on both qemu and lxc options page Shan Shaji
2025-09-23  9:36 ` [pve-devel] [PATCH pve_flutter_frontend 2/3] feat: ui: add bottom sheet to change VMs/CTs options Shan Shaji
2025-09-23 12:03   ` Thomas Lamprecht
2025-09-23 12:12     ` Shan Shaji
2025-09-23 12:24       ` Shan Shaji
2025-09-23  9:36 ` Shan Shaji [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250923093629.119418-4-s.shaji@proxmox.com \
    --to=s.shaji@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal