opt.: cpu line chart

This commit is contained in:
lollipopkit
2024-04-08 21:31:00 +08:00
parent 819c53df7e
commit 7d2fbde2fe
5 changed files with 32 additions and 17 deletions

View File

@@ -193,11 +193,16 @@ class _ServerDetailPageState extends State<ServerDetailPage>
),
children: [
Padding(
padding: const EdgeInsets.symmetric(horizontal: 17, vertical: 7),
padding: const EdgeInsets.symmetric(horizontal: 17, vertical: 13),
child: SizedBox(
height: 137,
width: _media.size.width - 26 - 34,
child: _buildLineChart(ss.cpu.spots, ss.cpu.rangeX),
child: _buildLineChart(
ss.cpu.spots,
ss.cpu.rangeX,
tooltipPrefix: 'CPU',
curve: true,
),
),
),
],