From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 863C61FF191 for ; Tue, 23 Sep 2025 11:36:39 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 8DDEE9746; Tue, 23 Sep 2025 11:37:07 +0200 (CEST) From: Shan Shaji To: pve-devel@lists.proxmox.com Date: Tue, 23 Sep 2025 11:36:29 +0200 Message-ID: <20250923093629.119418-4-s.shaji@proxmox.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250923093629.119418-1-s.shaji@proxmox.com> References: <20250923093629.119418-1-s.shaji@proxmox.com> MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1758620211785 X-SPAM-LEVEL: Spam detection results: 0 AWL -1.159 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy ENA_SUBJ_ODD_CASE 2.6 Subject has odd case KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH pve_flutter_frontend 3/3] cleanup: remove `PveConfigSwitchListTile` in favor of PveConfigListTile X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" Signed-off-by: Shan Shaji --- 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? 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