502027b602
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.
21 lines
699 B
Dart
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));
|
|
},
|
|
);
|
|
}
|