From 9c1b5899fb8ce8bd9ca807920b37d378dcc4e163 Mon Sep 17 00:00:00 2001 From: Winston Lowe Date: Sun, 25 Jan 2026 11:55:55 -0800 Subject: [PATCH] Added scroll view to room server login. Disabled autofocus of password. --- lib/widgets/path_trace_dialog.dart | 31 +++++++++++++++++------------- lib/widgets/room_login_dialog.dart | 6 ++++-- 2 files changed, 22 insertions(+), 15 deletions(-) diff --git a/lib/widgets/path_trace_dialog.dart b/lib/widgets/path_trace_dialog.dart index 2ffb110..0e6fd19 100644 --- a/lib/widgets/path_trace_dialog.dart +++ b/lib/widgets/path_trace_dialog.dart @@ -183,19 +183,24 @@ class _PathTraceDialogState extends State { : ListView.builder( itemCount: _snrData.length, itemBuilder: (context, index) { - return ListTile( - leading: index >= _snrData.length / 2 ? Icon(Icons.call_received) : Icon(Icons.call_made), - title: Text( - formatDirectionText(index), style: const TextStyle(fontSize: 14), - ), - subtitle: Text( - formatDirectionSubText(index), - style: const TextStyle(fontSize: 14), - ), - trailing: SNRIcon(snr: _snrData[index].toSigned(8) / 4.0), - onTap: () { - // Handle item tap - }, + return Column( + children: [ + ListTile( + leading: index >= _snrData.length / 2 ? Icon(Icons.call_received) : Icon(Icons.call_made), + title: Text( + formatDirectionText(index), style: const TextStyle(fontSize: 14), + ), + subtitle: Text( + formatDirectionSubText(index), + style: const TextStyle(fontSize: 14), + ), + trailing: SNRIcon(snr: _snrData[index].toSigned(8) / 4.0), + onTap: () { + // Handle item tap + }, + ), + if (index < _snrData.length - 1) const Divider(height: 0.0), + ], ); }, ), diff --git a/lib/widgets/room_login_dialog.dart b/lib/widgets/room_login_dialog.dart index 838ecf8..69f8dc6 100644 --- a/lib/widgets/room_login_dialog.dart +++ b/lib/widgets/room_login_dialog.dart @@ -261,7 +261,8 @@ class _RoomLoginDialogState extends State { child: CircularProgressIndicator(), ), ) - : Column( + : SingleChildScrollView( + child: Column( mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.start, children: [ @@ -292,7 +293,7 @@ class _RoomLoginDialogState extends State { ), ), onSubmitted: (_) => _handleLogin(), - autofocus: _passwordController.text.isEmpty, + //autofocus: _passwordController.text.isEmpty, ), const SizedBox(height: 12), CheckboxListTile( @@ -382,6 +383,7 @@ class _RoomLoginDialogState extends State { ), ], ), + ), actions: [ TextButton( onPressed: () => Navigator.pop(context),