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 058231FF185 for ; Mon, 18 Aug 2025 12:00:16 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id B1F5C3488D; Mon, 18 Aug 2025 12:01:53 +0200 (CEST) From: Shan Shaji To: pve-devel@lists.proxmox.com Date: Mon, 18 Aug 2025 12:01:34 +0200 Message-ID: <20250818100134.30550-4-s.shaji@proxmox.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250818100134.30550-1-s.shaji@proxmox.com> References: <20250818100134.30550-1-s.shaji@proxmox.com> MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1755511271706 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.186 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 Subject: [pve-devel] [PATCH pve_flutter_frontend v5 3/3] fix: ui: make noVNC console dismissible and prevent body resize 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" On iOS it's difficult to close the console view as there is no navigation bar like in Android. To fix the issue add `PveAppBar` which includes the back button that allow users to close the noVNC console view. Additionally, set `resizeToAvoidBottomInset` to false to avoid the Scaffold body from resizing automatically when the keyboard appears. Signed-off-by: Shan Shaji --- lib/widgets/pve_console_menu_widget.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/widgets/pve_console_menu_widget.dart b/lib/widgets/pve_console_menu_widget.dart index 66a852c..8228a48 100644 --- a/lib/widgets/pve_console_menu_widget.dart +++ b/lib/widgets/pve_console_menu_widget.dart @@ -9,6 +9,7 @@ import 'package:proxmox_dart_api_client/proxmox_dart_api_client.dart'; import 'package:proxmox_login_manager/proxmox_general_settings_model.dart'; import 'package:flutter_inappwebview/flutter_inappwebview.dart'; import 'package:crypto/crypto.dart'; +import 'package:pve_flutter_frontend/widgets/pve_app_bar.dart'; class PveConsoleMenu extends StatelessWidget { static const platform = @@ -213,8 +214,10 @@ class PVEWebConsoleState extends State { value: ticket, ), builder: (context, snapshot) { - return SafeArea( - child: InAppWebView( + return Scaffold( + resizeToAvoidBottomInset: false, + appBar: PveAppBar(), + body: InAppWebView( onReceivedServerTrustAuthRequest: (controller, challenge) async { final cert = challenge.protectionSpace.sslCertificate; final certBytes = cert?.x509Certificate?.encoded; -- 2.50.1 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel