mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-11 16:30:28 +00:00
feat: Favourites support using firmware flags bit 0
- Contact.isFavourite reads bit 0 of firmware flags field - Toggle favourite via contact action sheet (writes to device) - Favourites section shown first in contacts tab - Path size options corrected to [1, 2, 3] bytes
This commit is contained in:
@@ -688,6 +688,19 @@ class _ContactsTabState extends State<ContactsTab> {
|
||||
child: ListView(
|
||||
padding: const EdgeInsets.all(8),
|
||||
children: [
|
||||
// Favourites (contacts with firmware favourite flag set)
|
||||
if (contactsProvider.favouriteContacts.isNotEmpty) ...[
|
||||
_SectionHeader(
|
||||
title: 'Favourites',
|
||||
count: contactsProvider.favouriteContacts.length,
|
||||
icon: Icons.star,
|
||||
),
|
||||
..._buildContactSectionItems(
|
||||
contactsProvider.favouriteContacts,
|
||||
),
|
||||
const Divider(height: 32),
|
||||
],
|
||||
|
||||
// Team Members (Chat contacts)
|
||||
if (showTeamMembersSection) ...[
|
||||
_SectionHeader(
|
||||
|
||||
Reference in New Issue
Block a user