Fix repeater settings grey box, nameless discovered nodes and chip contrast
Repeater settings: - The Advanced and Identity Keys cards store their expanded flag in PageStorage. Their TextFields' inner Scrollables shared that identifier, read the bool as a scroll offset and failed to build, which showed as a large grey box in release builds. Give each card's body its own storage scope. Regression test added. Discovered contacts: - Adverts parse the two optional 16-bit feature fields before the name, as MeshCore's AdvertDataParser does, so their bytes are no longer read as the name (a zero byte gave an empty name). - A nameless advert or removal no longer wipes a known name. - The discovery tile gives the name the full width (the type chip beside it squeezed it to nothing at large text sizes); the type moves to the key line as plain text, and an unnamed node shows its key prefix. - The node scan sheet's type chip can shrink instead of the name. Contrast: - StatusChip draws its label in the normal text color; the icon or dot keeps the accent, adjusted to 3:1 against its tint. Avatar icons and initials get the same adjustment. Amber on its tint in the light theme was about 2:1. Channel chat: - Hashtag channels drop the redundant "Hashtag" subtitle label, and the region action moves into the overflow menu (tapping the title still opens it) so the channel name keeps its room.
This commit is contained in:
1 parent
ac28dac575
commit
821479742d
8 files changed
+265
-68
No files matched your search
@@ -215,10 +215,14 @@ class _NodeScanSheetState extends State<NodeScanSheet> {
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 6),
|
||||
StatusChip(
|
||||
label: contact.typeLabel(l10n).toUpperCase(),
|
||||
color: color,
|
||||
icon: contactTypeIcon(response.nodeType),
|
||||
// Let the chip shrink too, so it can't squeeze the
|
||||
// name to nothing on narrow screens or large text.
|
||||
Flexible(
|
||||
child: StatusChip(
|
||||
label: contact.typeLabel(l10n).toUpperCase(),
|
||||
color: color,
|
||||
icon: contactTypeIcon(response.nodeType),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user