mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
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:
co-authored by
Claude Opus 4.7
parent
251c06277e
commit
7fb457ca4a
@@ -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)),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user