mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
- Convert ArpScannerCard to a self-managing StatefulWidget (owns its own 5s refresh + 1s tick timers), removing the duplicated state management that existed in both HomeScreen and StatusScreen - Extract NotificationCard to home/notification_card.dart - Extract DeviceSummaryCard (with its 1-min refresh timer) to widgets/device_summary_card.dart - HomeScreen drops from 515 to 253 lines; StatusScreen from 82 to 19 lines Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
471 B
Dart
20 lines
471 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import '../widgets/arp_scanner_card.dart';
|
|
|
|
class StatusScreen extends StatelessWidget {
|
|
const StatusScreen({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Text('Status', style: Theme.of(context).textTheme.headlineMedium),
|
|
const SizedBox(height: 20),
|
|
const ArpScannerCard(),
|
|
],
|
|
);
|
|
}
|
|
}
|