mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-13 04:03:17 +00:00
fix: Hide memory metrics card when there are none
This commit is contained in:
parent
e065463ffb
commit
751de80840
|
@ -39,6 +39,7 @@ class _Chart extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
if (!(state is MetricsLoaded && state.memoryMetrics == null))
|
||||
FilledCard(
|
||||
clipped: false,
|
||||
child: Padding(
|
||||
|
@ -77,6 +78,7 @@ class _Chart extends StatelessWidget {
|
|||
const MemoryUsageByServiceRoute(),
|
||||
);
|
||||
},
|
||||
enabled: state is MetricsLoaded,
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue