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,
|
||||
getTitlesWidget: (value, meta) => Padding(
|
||||
padding: const EdgeInsets.only(top: 20.0),
|
||||
child: FittedBox(
|
||||
fit: BoxFit.scaleDown,
|
||||
child: Text(
|
||||
chartData.elementAtOrNull(value.toInt())?.date.month.getMonthName ??
|
||||
'',
|
||||
@ -119,7 +117,6 @@ class TotalEnergyConsumptionChart extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
leftTitles: AxisTitles(
|
||||
sideTitles: SideTitles(
|
||||
showTitles: true,
|
||||
|
Reference in New Issue
Block a user