import 'package:flutter/material.dart'; import '../../../core/api_gateway.dart'; import '../settings_row.dart'; import 'health_screen.dart'; class SettingsHealthSection extends StatelessWidget { const SettingsHealthSection({super.key, required this.gateway}); final ApiGateway gateway; @override Widget build(BuildContext context) => SettingsRow( leading: const Icon(Icons.monitor_heart_outlined), title: const Text('Server health'), subtitle: const Text('CPU, memory, GPU, storage and process'), chevron: true, onTap: () { final page = HealthScreen(gateway: gateway); Navigator.of(context).push(MaterialPageRoute(builder: (_) => page)); }, ); }