mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-10 02:32:47 +10:00
Added scroll view to room server login.
Disabled autofocus of password.
This commit is contained in:
@@ -183,19 +183,24 @@ class _PathTraceDialogState extends State<PathTraceDialog> {
|
|||||||
: ListView.builder(
|
: ListView.builder(
|
||||||
itemCount: _snrData.length,
|
itemCount: _snrData.length,
|
||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
return ListTile(
|
return Column(
|
||||||
leading: index >= _snrData.length / 2 ? Icon(Icons.call_received) : Icon(Icons.call_made),
|
children: [
|
||||||
title: Text(
|
ListTile(
|
||||||
formatDirectionText(index), style: const TextStyle(fontSize: 14),
|
leading: index >= _snrData.length / 2 ? Icon(Icons.call_received) : Icon(Icons.call_made),
|
||||||
),
|
title: Text(
|
||||||
subtitle: Text(
|
formatDirectionText(index), style: const TextStyle(fontSize: 14),
|
||||||
formatDirectionSubText(index),
|
),
|
||||||
style: const TextStyle(fontSize: 14),
|
subtitle: Text(
|
||||||
),
|
formatDirectionSubText(index),
|
||||||
trailing: SNRIcon(snr: _snrData[index].toSigned(8) / 4.0),
|
style: const TextStyle(fontSize: 14),
|
||||||
onTap: () {
|
),
|
||||||
// Handle item tap
|
trailing: SNRIcon(snr: _snrData[index].toSigned(8) / 4.0),
|
||||||
},
|
onTap: () {
|
||||||
|
// Handle item tap
|
||||||
|
},
|
||||||
|
),
|
||||||
|
if (index < _snrData.length - 1) const Divider(height: 0.0),
|
||||||
|
],
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -261,7 +261,8 @@ class _RoomLoginDialogState extends State<RoomLoginDialog> {
|
|||||||
child: CircularProgressIndicator(),
|
child: CircularProgressIndicator(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
: Column(
|
: SingleChildScrollView(
|
||||||
|
child: Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
@@ -292,7 +293,7 @@ class _RoomLoginDialogState extends State<RoomLoginDialog> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
onSubmitted: (_) => _handleLogin(),
|
onSubmitted: (_) => _handleLogin(),
|
||||||
autofocus: _passwordController.text.isEmpty,
|
//autofocus: _passwordController.text.isEmpty,
|
||||||
),
|
),
|
||||||
const SizedBox(height: 12),
|
const SizedBox(height: 12),
|
||||||
CheckboxListTile(
|
CheckboxListTile(
|
||||||
@@ -382,6 +383,7 @@ class _RoomLoginDialogState extends State<RoomLoginDialog> {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
),
|
||||||
actions: [
|
actions: [
|
||||||
TextButton(
|
TextButton(
|
||||||
onPressed: () => Navigator.pop(context),
|
onPressed: () => Navigator.pop(context),
|
||||||
|
|||||||
Reference in New Issue
Block a user