Make device detail IP and info fields selectable

Use SelectableText for the IP address and all info-card values so users
can select and copy them (e.g. the MAC address).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
rzuasti
2026-05-29 13:56:16 -04:00
co-authored by Claude Opus 4.7
parent 251c06277e
commit 7fb457ca4a
+2 -2
View File
@@ -140,7 +140,7 @@ class _DeviceHeader extends StatelessWidget {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(device.ipv4Address, style: theme.textTheme.headlineSmall),
SelectableText(device.ipv4Address, style: theme.textTheme.headlineSmall),
const SizedBox(height: 4),
if (device.isRegistered)
StatusBadge(label: 'Registered', color: BadgeColor.success)
@@ -239,7 +239,7 @@ class _InfoRow extends StatelessWidget {
),
),
),
Expanded(child: Text(value, style: theme.textTheme.bodyMedium)),
Expanded(child: SelectableText(value, style: theme.textTheme.bodyMedium)),
],
),
);