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,15 +106,12 @@ 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 ??
|
||||
'',
|
||||
style: context.textTheme.bodySmall?.copyWith(
|
||||
fontSize: 12,
|
||||
color: ColorsManager.greyColor,
|
||||
),
|
||||
child: Text(
|
||||
chartData.elementAtOrNull(value.toInt())?.date.month.getMonthName ??
|
||||
'',
|
||||
style: context.textTheme.bodySmall?.copyWith(
|
||||
fontSize: 12,
|
||||
color: ColorsManager.greyColor,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
Reference in New Issue
Block a user