Skip to content

Commit

Permalink
Fix line_chart_sample1 to use SideTitleWidget (this way it considers …
Browse files Browse the repository at this point in the history
…the rotation)
  • Loading branch information
imaNNeo committed Dec 27, 2024
1 parent 050dbef commit ade5115
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,14 @@ class _LineChart extends StatelessWidget {
return Container();
}

return Text(text, style: style, textAlign: TextAlign.center);
return SideTitleWidget(
meta: meta,
child: Text(
text,
style: style,
textAlign: TextAlign.center,
),
);
}

SideTitles leftTitles() => SideTitles(
Expand Down

0 comments on commit ade5115

Please sign in to comment.