Merge origin/dev into fix/visual-consistency

This commit is contained in:
zjs81 committed 2026-11-21 08:51:01 -07:00
commit 96b8ff5cf7
85 files changed
+8433 -1331

No files matched your search

+30 -26
View File
@@ -2295,13 +2295,14 @@ class _MapScreenState extends State<MapScreen> with WidgetsBindingObserver {
) {
final query = _searchQuery.trim().toLowerCase();
final matches =
allContacts.where((c) => matchesContactQuery(c, query)).toList()
..sort((a, b) {
allContacts.where((c) => matchesContactQuery(c, query)).toList()..sort(
(a, b) => compareContactQueryRank(a, b, query, (a, b) {
if (a.hasLocation != b.hasLocation) {
return a.hasLocation ? -1 : 1;
}
return b.lastHeard.compareTo(a.lastHeard);
});
}),
);
final results = matches.take(8).toList();
return Container(
margin: const EdgeInsets.only(top: 6),
@@ -3467,6 +3468,15 @@ class _MapScreenState extends State<MapScreen> with WidgetsBindingObserver {
contact.type != advTypeRoom,
)
.toList();
final people = allContacts
.where(
(contact) =>
query.isEmpty || matchesContactQuery(contact, query),
)
.toList();
if (query.isNotEmpty) {
people.sort((a, b) => compareContactQueryRank(a, b, query));
}
return SafeArea(
child: SingleChildScrollView(
child: Column(
@@ -3502,29 +3512,23 @@ class _MapScreenState extends State<MapScreen> with WidgetsBindingObserver {
},
),
),
...allContacts
.where(
(contact) =>
query.isEmpty ||
matchesContactQuery(contact, query),
)
.map((contact) {
return ListTile(
leading: const Icon(Icons.person),
title: Text(contact.name),
onTap: () {
Navigator.pop(sheetContext);
if (!_markerFits(
context,
markerText,
maxContactMessageBytes(),
)) {
return;
}
liveConnector.sendMessage(contact, markerText);
},
);
}),
...people.map((contact) {
return ListTile(
leading: const Icon(Icons.person),
title: Text(contact.name),
onTap: () {
Navigator.pop(sheetContext);
if (!_markerFits(
context,
markerText,
maxContactMessageBytes(),
)) {
return;
}
liveConnector.sendMessage(contact, markerText);
},
);
}),
Padding(
padding: const EdgeInsets.fromLTRB(16, 12, 16, 4),
child: Text(