mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-14 04:33:16 +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),
|
const SizedBox(height: 8),
|
||||||
|
if (!(state is MetricsLoaded && state.memoryMetrics == null))
|
||||||
FilledCard(
|
FilledCard(
|
||||||
clipped: false,
|
clipped: false,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
|
@ -77,6 +78,7 @@ class _Chart extends StatelessWidget {
|
||||||
const MemoryUsageByServiceRoute(),
|
const MemoryUsageByServiceRoute(),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
enabled: state is MetricsLoaded,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue