From 41b32923dd6a6ac2ed8a690c1330edf512ad2bb2 Mon Sep 17 00:00:00 2001 From: zontreck Date: Fri, 14 Mar 2025 23:39:06 -0700 Subject: [PATCH] On non-desktop, split the two input sections for readability --- lib/flutter/BugVaultMain.dart | 47 ++++++++++++++++++++++++++--------- 1 file changed, 35 insertions(+), 12 deletions(-) diff --git a/lib/flutter/BugVaultMain.dart b/lib/flutter/BugVaultMain.dart index 9104a7e..fa382f8 100644 --- a/lib/flutter/BugVaultMain.dart +++ b/lib/flutter/BugVaultMain.dart @@ -141,19 +141,42 @@ class BugVaultLoadPageState extends State { "The URL to where the instance of BugVault is running", ), ), - Row( - children: [ - Text("HOST / FQDN :"), - Expanded(child: highlightTextField(URL_CONTROLLER)), - Text("PORT :"), - Expanded( - child: highlightTextField( - PORT_CONTROLLER, - keyboardType: TextInputType.number, + if (Platform.isAndroid || Platform.isIOS) + Column( + children: [ + Row( + children: [ + Text("HOST / FQDN :"), + Expanded(child: highlightTextField(URL_CONTROLLER)), + ], ), - ), - ], - ), + Row( + children: [ + Text("PORT :"), + Expanded( + child: highlightTextField( + PORT_CONTROLLER, + keyboardType: TextInputType.number, + ), + ), + ], + ), + ], + ) + else + Row( + children: [ + Text("HOST / FQDN :"), + Expanded(child: highlightTextField(URL_CONTROLLER)), + Text("PORT :"), + Expanded( + child: highlightTextField( + PORT_CONTROLLER, + keyboardType: TextInputType.number, + ), + ), + ], + ), ListTile( title: Text("NOTICE"), subtitle: Text(