Add Status screen with ARP scanner live status display

Shows ARP scanner state (running/waiting/error) with a colored indicator
and time that ticks locally every second, refreshing from the API every 5s.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
rzuasti
2026-05-28 18:16:04 -04:00
co-authored by Claude Sonnet 4.6
parent 020c7d2c49
commit dc8f47e66d
4 changed files with 211 additions and 3 deletions
@@ -0,0 +1,19 @@
class ArpScannerStatus {
final bool isRunning;
final double? runningForSeconds;
final double? nextRunInSeconds;
const ArpScannerStatus({
required this.isRunning,
this.runningForSeconds,
this.nextRunInSeconds,
});
factory ArpScannerStatus.fromJson(Map<String, dynamic> json) {
return ArpScannerStatus(
isRunning: json['is_running'] as bool,
runningForSeconds: (json['running_for_seconds'] as num?)?.toDouble(),
nextRunInSeconds: (json['next_run_in_seconds'] as num?)?.toDouble(),
);
}
}