mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
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>
8 lines
220 B
Dart
8 lines
220 B
Dart
String formatSeconds(double seconds) {
|
|
final total = seconds.round().clamp(0, double.maxFinite.toInt());
|
|
if (total < 60) return '${total}s';
|
|
final m = total ~/ 60;
|
|
final s = total % 60;
|
|
return '${m}m ${s}s';
|
|
}
|