Add registered status pill to device list items

Shows the green 'Registered' badge next to the IP address for registered
devices, matching the existing behaviour in the device detail screen.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
rzuasti
2026-05-27 19:19:13 -04:00
co-authored by Claude Sonnet 4.6
parent 4b88de1198
commit bf74cbb38e
+7 -3
View File
@@ -144,13 +144,17 @@ class _DeviceListState extends State<DeviceList> {
title: Row(
children: [
Text(device.ipv4Address),
if (!device.isRegistered) ...[
const SizedBox(width: 8),
const SizedBox(width: 8),
if (device.isRegistered)
const StatusBadge(
label: 'Registered',
color: BadgeColor.success,
)
else
const StatusBadge(
label: 'Not registered',
color: BadgeColor.secondary,
),
],
],
),
subtitle: Text(