mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
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:
co-authored by
Claude Sonnet 4.6
parent
4b88de1198
commit
bf74cbb38e
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user