mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
fixed titles widget for bottom title.
This commit is contained in:
@ -22,11 +22,14 @@ abstract final class RangeOfAqiChartsHelper {
|
|||||||
return titlesData.copyWith(
|
return titlesData.copyWith(
|
||||||
bottomTitles: titlesData.bottomTitles.copyWith(
|
bottomTitles: titlesData.bottomTitles.copyWith(
|
||||||
sideTitles: titlesData.bottomTitles.sideTitles.copyWith(
|
sideTitles: titlesData.bottomTitles.sideTitles.copyWith(
|
||||||
getTitlesWidget: (value, meta) => Text(
|
getTitlesWidget: (value, meta) => Padding(
|
||||||
data.isNotEmpty ? data[value.toInt()].date.day.toString() : '',
|
padding: const EdgeInsetsDirectional.only(top: 20.0),
|
||||||
style: context.textTheme.bodySmall?.copyWith(
|
child: Text(
|
||||||
fontSize: 12,
|
data.isNotEmpty ? data[value.toInt()].date.day.toString() : '',
|
||||||
color: ColorsManager.lightGreyColor,
|
style: context.textTheme.bodySmall?.copyWith(
|
||||||
|
fontSize: 12,
|
||||||
|
color: ColorsManager.lightGreyColor,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user