flutter_percent_indicator icon indicating copy to clipboard operation
flutter_percent_indicator copied to clipboard

Remove the default spacing on both sides

Open easonccc opened this issue 2 years ago • 1 comments

How to remove the default spacing on both sides when using LinearPercentIndicator MediaQuery.removeViewInsets( context: context, removeLeft: true, removeRight: true, child: new LinearPercentIndicator( width: 40, lineHeight: 6.0, percent: 0.5, backgroundColor: ColorUtils.color_F3F4F8, progressColor: ColorUtils.color_FFC74D, barRadius: Radius.elliptical(20, 20), ), )

easonccc avatar Apr 20 '22 07:04 easonccc

Not sure why there is a default non zero padding, but just set it to zero.

LinearPercentIndicator(
    padding: EdgeInsets.zero, // Add this line
)

nmdias avatar May 20 '22 05:05 nmdias