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

Adding progressBorderColor property on progressBar #196

Merged
merged 4 commits into from
May 26, 2023

Conversation

bardez
Copy link
Contributor

@bardez bardez commented May 12, 2023

Used to allow percent indicator uses a different border color

Screenshot 2023-05-12 at 16 55 34

Screenshot 2023-05-12 at 16 55 46

_paintLine.style = PaintingStyle.stroke;
_paintLine.strokeWidth = lineWidth;
_paintLine.style = PaintingStyle.fill;
_paintLine.strokeWidth = lineWidth - 2;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why -2 here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for border size ... I think if it is dynamic, another problems will appear

@diegoveloper
Copy link
Owner

thanks for making these changes, can you also update the examples, adding a few using this new property? thanks

@bardez
Copy link
Contributor Author

bardez commented May 16, 2023

I make some changes to avoid percent border errors on linear. please verify and accept. Now with some examples

@bardez
Copy link
Contributor Author

bardez commented May 17, 2023

Screenshot 2023-05-17 at 11 16 06

Screenshot 2023-05-17 at 11 17 06

@bardez bardez requested a review from diegoveloper May 22, 2023 17:46
@bardez
Copy link
Contributor Author

bardez commented May 23, 2023

Up

@bardez
Copy link
Contributor Author

bardez commented May 26, 2023

@diegoveloper can you review this new PR pls?

@diegoveloper diegoveloper merged commit c1c5ddb into diegoveloper:master May 26, 2023
@diegoveloper
Copy link
Owner

Thanks for the contribution!! I'm out of my city now but I'll publish this as a new version the next week. In the meantime you can point directly to the repo.

@bardez
Copy link
Contributor Author

bardez commented May 29, 2023

thanks bro!

@katherineqian
Copy link

katherineqian commented Jul 11, 2024

Hi! When I set the progressBorderColor on a LinearPercentIndicator, nothing happens. It works on CircularPercentIndicator. Am I missing something here?

@katherineqian
Copy link

@bardez hello! Can you please verify if using progressBorderColor on LinearPercentIndicator works for you? It is still doing nothing for me. Currently using your fork of the package to get this feature!

diegoveloper added a commit that referenced this pull request Nov 23, 2024
* Adding progressBorderColor property on progressBar (#196)

* adding progressBorderColor on progressBar draw

* fixing border colors on linear percent and adding examples

* removing unnecessary parse comparsion on progress(double)

* refactoring border correction symmetrics

---------

Co-authored-by: Thiago Carvalho Ribeiro Bardez - TBA <[email protected]>

* fix: divide 0 error when archType is not null (#200)

* Check in linear percent indicator state is null if the size is null (#203)

* Add function return current percent value if animation is true (#206)

* Add an 'initialPercent' field to control the initial animation. (#209)

* Update master.yml

* Update release.yml

---------

Co-authored-by: Bardez <[email protected]>
Co-authored-by: Thiago Carvalho Ribeiro Bardez - TBA <[email protected]>
Co-authored-by: fenghezhou <[email protected]>
Co-authored-by: Victor Manuel Lagunas Franco <[email protected]>
Co-authored-by: Le Anh Phi <[email protected]>
Co-authored-by: Erik Fahlén <[email protected]>
diegoveloper added a commit that referenced this pull request Nov 23, 2024
* Adding progressBorderColor property on progressBar (#196)

* adding progressBorderColor on progressBar draw

* fixing border colors on linear percent and adding examples

* removing unnecessary parse comparsion on progress(double)

* refactoring border correction symmetrics

---------

Co-authored-by: Thiago Carvalho Ribeiro Bardez - TBA <[email protected]>

* fix: divide 0 error when archType is not null (#200)

* Check in linear percent indicator state is null if the size is null (#203)

* Add function return current percent value if animation is true (#206)

* Add an 'initialPercent' field to control the initial animation. (#209)

* Update master.yml

* Update release.yml

* Update release.yml

---------

Co-authored-by: Bardez <[email protected]>
Co-authored-by: Thiago Carvalho Ribeiro Bardez - TBA <[email protected]>
Co-authored-by: fenghezhou <[email protected]>
Co-authored-by: Victor Manuel Lagunas Franco <[email protected]>
Co-authored-by: Le Anh Phi <[email protected]>
Co-authored-by: Erik Fahlén <[email protected]>
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

Successfully merging this pull request may close these issues.

4 participants