flutter_percent_indicator
flutter_percent_indicator copied to clipboard
Remove the default spacing on both sides
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), ), )
Not sure why there is a default non zero padding, but just set it to zero.
LinearPercentIndicator(
padding: EdgeInsets.zero, // Add this line
)