mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
uses MediaQuery.sizeOf
instead of MediaQuery.of
.
This commit is contained in:
@ -54,7 +54,7 @@ class _AnalyticsEnergyManagementViewState
|
|||||||
spacing: 32,
|
spacing: 32,
|
||||||
children: [
|
children: [
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: MediaQuery.of(context).size.height * 0.9,
|
height: MediaQuery.sizeOf(context).height * 0.9,
|
||||||
child: Container(
|
child: Container(
|
||||||
decoration: subSectionContainerDecoration.copyWith(
|
decoration: subSectionContainerDecoration.copyWith(
|
||||||
borderRadius: BorderRadius.circular(30),
|
borderRadius: BorderRadius.circular(30),
|
||||||
@ -64,11 +64,11 @@ class _AnalyticsEnergyManagementViewState
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: MediaQuery.of(context).size.height * 0.5,
|
height: MediaQuery.sizeOf(context).height * 0.5,
|
||||||
child: const TotalEnergyConsumptionChartBox(),
|
child: const TotalEnergyConsumptionChartBox(),
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: MediaQuery.of(context).size.height * 0.5,
|
height: MediaQuery.sizeOf(context).height * 0.5,
|
||||||
child: const EnergyConsumptionPerDeviceChartBox(),
|
child: const EnergyConsumptionPerDeviceChartBox(),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user