diegoveloper / flutter_percent_indicator

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

ArcType.Full but not at the bottom but on top #141

Closed chrizstone closed 2 years ago

chrizstone commented 2 years ago

Is there a possibility to have that open space not at the bottom side but on the top side?

CircularPercentIndicator(
          backgroundColor: context.theme.greyD1,
          arcType: ArcType.FULL,
          circularStrokeCap: CircularStrokeCap.round,
          arcBackgroundColor: context.theme.greyD1,
          percent: calculateProgress(),
          radius: 150,
          lineWidth: 10,
          animateFromLastPercent: true,
          animation: true,
          linearGradient: LinearGradient(
            begin: Alignment.centerRight,
            end: Alignment.centerLeft,
            stops: const [0.0, 0.5, 1.0],
            colors: <Color>[
              context.theme.avatarGradientBegin,
              context.theme.avatarGradientMid,
              context.theme.avatarGradientEnd,
            ],
          ),
          widgetIndicator: Center(
            child: Container(
              height: 20,
              width: 20,
              decoration: BoxDecoration(
                color: context.theme.audioIndicatorPink,
                borderRadius: BorderRadius.circular(10),
              ),
            ),
          ),
        );
diegoveloper commented 2 years ago

PRs are welcome!

chrizstone commented 2 years ago

https://github.com/diegoveloper/flutter_percent_indicator/pull/142