0

i want to add double ripple like showing in the picture at dot when selected , to make some animation to the FL_chart ? I used fl_chart 0.55.2 [enter image description here]this is the example of animation (https://i.stack.imgur.com/191fd.png)

    LineChartBarData(
                    spots: dummyData2,
                    isCurved: true,
                    gradient: LinearGradient(
                      colors: [
                        ColorTween(
                                begin: gradientColorsLu[0],
                                end: gradientColorsLu[1])
                            .lerp(0.2)!,
                        ColorTween(
                                begin: gradientColorsLu[0],
                                end: gradientColorsLu[1])
                            .lerp(0.2)!,
                      ],
                    ),
                    barWidth: 5,
                    isStrokeCapRound: true,
                    dotData: FlDotData(
                      show: true,
                    ),
                    belowBarData: BarAreaData(
                      show: true,
                      gradient: LinearGradient(
                        colors: [
                          ColorTween(
                                  begin: gradientColorsLu[0],
                                  end: gradientColorsLu[1])
                              .lerp(0.2)!
                              .withOpacity(0.1),
                          ColorTween(
                                  begin: gradientColorsLu[0],
                                  end: gradientColorsLu[1])
                              .lerp(0.2)!
                              .withOpacity(0.1),
                        ],
                      ),
                    ),
                  ),

I want to add animation to dots in chart when clicked

SONIA
  • 1
  • 1
  • 2

0 Answers0