Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the default spacing on both sides #151

Open
easonccc opened this issue Apr 20, 2022 · 1 comment
Open

Remove the default spacing on both sides #151

easonccc opened this issue Apr 20, 2022 · 1 comment

Comments

@easonccc
Copy link

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), ), )

@nmdias
Copy link

nmdias commented May 20, 2022

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants