| .. | .. |
|---|
| 9 | 9 | import '../services/wol_service.dart'; |
|---|
| 10 | 10 | import '../theme/app_theme.dart'; |
|---|
| 11 | 11 | import '../widgets/status_dot.dart'; |
|---|
| 12 | +import 'trace_screen.dart'; |
|---|
| 12 | 13 | |
|---|
| 13 | 14 | class SettingsScreen extends ConsumerStatefulWidget { |
|---|
| 14 | 15 | const SettingsScreen({super.key}); |
|---|
| .. | .. |
|---|
| 371 | 372 | icon: const Icon(Icons.shield_outlined), |
|---|
| 372 | 373 | label: const Text('Reset Server Trust'), |
|---|
| 373 | 374 | ), |
|---|
| 375 | + const SizedBox(height: 12), |
|---|
| 376 | + |
|---|
| 377 | + // Message Trace Log — for diagnosing message delivery problems |
|---|
| 378 | + OutlinedButton.icon( |
|---|
| 379 | + onPressed: () { |
|---|
| 380 | + Navigator.of(context).push( |
|---|
| 381 | + MaterialPageRoute<void>( |
|---|
| 382 | + builder: (_) => const TraceScreen(), |
|---|
| 383 | + ), |
|---|
| 384 | + ); |
|---|
| 385 | + }, |
|---|
| 386 | + icon: const Icon(Icons.receipt_long_outlined), |
|---|
| 387 | + label: const Text('Message Trace Log'), |
|---|
| 388 | + ), |
|---|
| 374 | 389 | const SizedBox(height: 24), |
|---|
| 375 | 390 | |
|---|
| 376 | 391 | // --- PAILot Pro --- |
|---|