From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id D455F1FF1EE for ; Fri, 1 Aug 2025 11:59:38 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id B95EC15819; Fri, 1 Aug 2025 12:01:04 +0200 (CEST) From: Shan Shaji To: pve-devel@lists.proxmox.com Date: Fri, 1 Aug 2025 12:00:50 +0200 Message-Id: <20250801100051.83035-2-s.shaji@proxmox.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250801100051.83035-1-s.shaji@proxmox.com> References: <20250801100051.83035-1-s.shaji@proxmox.com> MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1754042448750 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.217 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 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 URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [context.name] Subject: [pve-devel] [PATCH pve_flutter_frontend 1/1] refactor: ui: add new settings page and use existing ssl toggle widget 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" The settings page UI was previously implemented in proxmox_login_manager. A new screen has now been created with an added route and removed the settings page from `proxmox_login_manager`. This screen reuses the SSL toggle form from the `proxmox_login_manager` package. Signed-off-by: Shan Shaji --- lib/main.dart | 8 ++++++++ lib/pages/pve_settings_page.dart | 23 +++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 lib/pages/pve_settings_page.dart diff --git a/lib/main.dart b/lib/main.dart index 6a7c5a9..0ffcae7 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,6 +1,7 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; +import 'package:pve_flutter_frontend/pages/pve_settings_page.dart'; import 'package:pve_flutter_frontend/widgets/pve_first_welcome_screen.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'package:proxmox_login_manager/proxmox_login_manager.dart'; @@ -227,6 +228,13 @@ class MyApp extends StatelessWidget { ); } + if (context.name == PveSettingsPage.routePath) { + return MaterialPageRoute( + settings: context, + builder: (context) => PveSettingsPage(), + ); + } + if (authbloc!.state.value is Unauthenticated || context.name == '/login') { return MaterialPageRoute( diff --git a/lib/pages/pve_settings_page.dart b/lib/pages/pve_settings_page.dart new file mode 100644 index 0000000..0d405c1 --- /dev/null +++ b/lib/pages/pve_settings_page.dart @@ -0,0 +1,23 @@ +import 'package:flutter/material.dart'; +import 'package:proxmox_login_manager/proxmox_general_settings_form.dart'; +import 'package:pve_flutter_frontend/widgets/pve_app_bar.dart'; + +class PveSettingsPage extends StatelessWidget { + static final routePath = '/settings'; + + const PveSettingsPage({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: PveAppBar(), + body: SingleChildScrollView( + child: Column( + children: [ + ProxmoxGeneralSettingsForm(), + ], + ), + ), + ); + } +} -- 2.39.5 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel