diegoveloper / flutter_percent_indicator

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

linearGradientBackgroundColor is not working #214

Open Hamid313-coder opened 2 months ago

Hamid313-coder commented 2 months ago

In my flutter windows app the linearGradientBackgroundColor is not shown until I hover on button, then it suddenly appears.

ping5721 commented 1 month ago

same here but on ios simulator.

ping5721 commented 1 month ago

here's some workaround Container( decoration: BoxDecoration( color: backgroundColor, gradient: backgroundColor == null ? ColorPalette.flashsaleProgressBarGradientOpacity : null, ), child: LinearPercentIndicator( percent:percent, linearGradient: progressColor == null ? ColorPalette.flashSaleGradient : null, progressColor: progressColor, backgroundColor: backgroundColor ?? Colors.transparent, (using transparant to hide) ), ),

      @Hamid313-coder