Files
pipelines/app/lib/features/settings/health/settings_health_section.dart
T
alan 502027b602 Remove Cupertino branches from server settings
Keep the public compatibility parameters while retaining only the Material UI path. Remove Cupertino-only tests so the reviewed settings and server code matches the app's Material-only runtime.
2026-11-11 01:39:39 +00:00

21 lines
699 B
Dart

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<void>(builder: (_) => page));
},
);
}