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,
|
||||
children: [
|
||||
SizedBox(
|
||||
height: MediaQuery.of(context).size.height * 0.9,
|
||||
height: MediaQuery.sizeOf(context).height * 0.9,
|
||||
child: Container(
|
||||
decoration: subSectionContainerDecoration.copyWith(
|
||||
borderRadius: BorderRadius.circular(30),
|
||||
@ -64,11 +64,11 @@ class _AnalyticsEnergyManagementViewState
|
||||
),
|
||||
),
|
||||
SizedBox(
|
||||
height: MediaQuery.of(context).size.height * 0.5,
|
||||
height: MediaQuery.sizeOf(context).height * 0.5,
|
||||
child: const TotalEnergyConsumptionChartBox(),
|
||||
),
|
||||
SizedBox(
|
||||
height: MediaQuery.of(context).size.height * 0.5,
|
||||
height: MediaQuery.sizeOf(context).height * 0.5,
|
||||
child: const EnergyConsumptionPerDeviceChartBox(),
|
||||
),
|
||||
],
|
||||
|
Reference in New Issue
Block a user