Merge pull request #131 from srn08/text-cutoff

Fixed LineChart Text Cutoff
This commit is contained in:
Kenton Hamaluik
2025-01-23 20:13:20 -07:00
committed by GitHub

View File

@ -168,10 +168,10 @@ class _WeeklyTotalsState extends State<WeeklyTotals> {
int week = dweek.toInt(); int week = dweek.toInt();
DateTime date = DateTime date =
firstDate!.add(Duration(days: week * 7)); firstDate!.add(Duration(days: week * 7));
return Padding( return Container(
padding: const EdgeInsets.all(2.0), padding: const EdgeInsets.only(top: 5),
child: Text( child: Text(
dateFormat.format(date).replaceAll(' ', '\n'), dateFormat.format(date),
style: theme.textTheme.bodySmall, style: theme.textTheme.bodySmall,
), ),
); );