Add mDNS scanner status to Status and Home screens

Add an mDNS Scanner status card to the Status screen mirroring the ARP
card, and replace the ARP card on the Home screen with a combined Status
card that summarizes both scanners in one line each. Extract the shared
duration formatting helper into utils/duration_formatter.dart.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
rzuasti
2026-05-29 10:19:50 -04:00
co-authored by Claude Sonnet 4.6
parent c6fdf9e181
commit 75f597bfe4
9 changed files with 372 additions and 27 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
import 'package:flutter/material.dart';
import '../widgets/arp_scanner_card.dart';
import '../widgets/device_summary_card.dart';
import '../widgets/scanners_status_card.dart';
import 'notifications_list.dart';
const _twoColumnBreakpoint = 700.0;
@@ -33,7 +33,7 @@ class HomeScreen extends StatelessWidget {
children: [
DeviceSummaryCard(),
SizedBox(height: 16),
ArpScannerCard(),
ScannersStatusCard(),
],
),
),
@@ -54,7 +54,7 @@ class HomeScreen extends StatelessWidget {
SliverToBoxAdapter(
child: Padding(
padding: EdgeInsets.only(top: 16, bottom: 20),
child: ArpScannerCard(),
child: ScannersStatusCard(),
),
),
],