I've built a Flutter app, and used fl_chart
to present a bar chart.
It works great, but the only thing left it to add a label inside each bar, as in this UI design:
It seems fl_chart
doesn't have a label property for the bar.
I've tried to add a simple Text
widget on top of the chart using a Stack
, but the calculation of the position of each label does not work on all screen sizes.
Does anyone know what is the best way to implement the label on the bar?
Thank you!