diegoveloper / flutter_percent_indicator

Flutter percent indicator library
BSD 2-Clause "Simplified" License
679 stars 206 forks source link

Widget indicator not working when using CircularPercentIndicator Arc #123

Closed fabianosanttana closed 2 years ago

fabianosanttana commented 3 years ago

Im trying to use circular percent indicator but there is an problem, my widget indicator is displayed in another place that is not end of my percentage.

Screen Shot 2021-07-20 at 19 49 47
CircularPercentIndicator(
                  radius: 120.0,
                  animation: true,
                  animationDuration: 2000,
                  lineWidth: 10.0,
                  percent: 0.4,
                  reverse: false,
                  arcType: ArcType.FULL,
                  startAngle: 0.0,
                  animateFromLastPercent: true,
                  circularStrokeCap: CircularStrokeCap.round,
                  backgroundColor: Colors.transparent,
                  linearGradient: const LinearGradient(
                    begin: Alignment.centerLeft,
                    end: Alignment.centerRight,
                    tileMode: TileMode.clamp,
                    stops: [0.0, 1.0],
                    colors: <Color>[
                      Colors.yellow,
                      Colors.red,
                    ],
                  ),
                  widgetIndicator: Center(
                    child: Container(
                      height: 30,
                      width: 30,
                      decoration: BoxDecoration(
                        color: yellowStone.withOpacity(.5),
                        borderRadius: BorderRadius.circular(50),
                      ),
                      padding: const EdgeInsets.all(5),
                      child: Container(
                        decoration: BoxDecoration(
                          color: yellowStone.withOpacity(1),
                          borderRadius: BorderRadius.circular(50),
                        ),
                      ),
                    ),
                  ),
                  arcBackgroundColor: Colors.red,
                )
diegoveloper commented 2 years ago

Fixed on the latest version.

chrizstone commented 2 years ago

This is not fixed?! I took exactly same code as @fabianosanttana. Have the same issue with version 4.0.0... Any updates here?