mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
Simplify widget structure in TotalEnergyConsumptionChart
by removing unnecessary FittedBox
wrapper around month title text.
This commit is contained in:
@ -106,8 +106,6 @@ class TotalEnergyConsumptionChart extends StatelessWidget {
|
|||||||
maxIncluded: true,
|
maxIncluded: true,
|
||||||
getTitlesWidget: (value, meta) => Padding(
|
getTitlesWidget: (value, meta) => Padding(
|
||||||
padding: const EdgeInsets.only(top: 20.0),
|
padding: const EdgeInsets.only(top: 20.0),
|
||||||
child: FittedBox(
|
|
||||||
fit: BoxFit.scaleDown,
|
|
||||||
child: Text(
|
child: Text(
|
||||||
chartData.elementAtOrNull(value.toInt())?.date.month.getMonthName ??
|
chartData.elementAtOrNull(value.toInt())?.date.month.getMonthName ??
|
||||||
'',
|
'',
|
||||||
@ -119,7 +117,6 @@ class TotalEnergyConsumptionChart extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
leftTitles: AxisTitles(
|
leftTitles: AxisTitles(
|
||||||
sideTitles: SideTitles(
|
sideTitles: SideTitles(
|
||||||
showTitles: true,
|
showTitles: true,
|
||||||
|
Reference in New Issue
Block a user