0

I'm working on fl_chart and would like to use "Icons.favorite" from Icon class for dot. Is there way to achieve this? Below is LineChart that I have been working with and I would like to change blue dot on both edge of line to "Icons.favorite" from Icon class.

LineChart(LineChartData(
  lineBarsData: [
    LineChartBarData(
      spots: FlSpotDatas, 
      dotData: FlDotData()),
])

enter image description here

I feel like it can be done by FlDotData() but could not find any mategial about and I hope to get help.

  • Please update your Question. Are you working on fl_chart? Or with fl_chart? Dot where? How should it look? What did you tried so far? Show your code and what you did so far and some one can try to help you. I think no one will be able to help you like that. – MrOrhan Jun 27 '23 at 13:00
  • thank you for point out lack of information. – Akira Yoshimura Jun 27 '23 at 14:17
  • I looked up for you. It is not possible to draw an Icon with this package. – MrOrhan Jun 29 '23 at 12:32
  • thank you so much for your help. It unfortunate to know that, I hope it will be added in the future update. – Akira Yoshimura Jun 30 '23 at 02:31
  • You can build (draw) your own graph. It will help you to learn Flutter better and you will also learn how with this you can learn how to draw a linear a dot (what they are also doing in the package:https://www.youtube.com/watch?v=jaoJz3q9PmE. Then you have to check how to draw an Icon, here is an stackoverflow answer: https://stackoverflow.com/questions/57922017/flutter-how-to-paint-an-icon-on-canvas. And if you tried but can't get there, post what you made it this far and where you got stuck. (with code and maybe some image how it looks and how it should look.) – MrOrhan Jul 01 '23 at 08:16

1 Answers1

0

As it said in the comment it was not possible.