Skip to content

Conversation

@Hari-07
Copy link
Contributor

@Hari-07 Hari-07 commented Aug 7, 2022

Adds a StrokeCap parameter on the ProgressIndicator class with a default value of StrokeCap.square, and also gives access to this parameter via CircularProgressIndicator and RefreshProgressIndicator

List which issues are fixed by this PR. You must list at least one issue.
#109137

If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.
Non-breaking change: Added the strokecap property on arc painter

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard flutter-dashboard bot added f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels Aug 7, 2022
@Hari-07
Copy link
Contributor Author

Hari-07 commented Aug 7, 2022

It'd be great if someone on the team could elaborate what the failed tests show, from what I can see there's no information about why those test failed

@Hari-07
Copy link
Contributor Author

Hari-07 commented Aug 8, 2022

It seems like the tests failed to compile, not sure about why but doesnt look related to this PR, would be great if someone could suggest how this can be resolved

@Hari-07 Hari-07 force-pushed the strokecap-progress-indicator branch from 95fde0f to b0aad0c Compare August 9, 2022 15:43
@HansMuller HansMuller self-requested a review August 11, 2022 16:15
Copy link
Contributor

@HansMuller HansMuller left a comment

Choose a reason for hiding this comment

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

We appreciate the contribution but do not have the bandwidth to help debug the test failures (#109111 (comment)). If you're unable to sort the failures out, please close the PR, at least for now. Sorry we couldn't be of more help.

@flutter-dashboard
Copy link

This pull request executed golden file tests, but it has not been updated in a while (20+ days). Test results from Gold expire after as many days, so this pull request will need to be updated with a fresh commit in order to get results from Gold.

For more guidance, visit Writing a golden file test for package:flutter.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@Hari-07 Hari-07 closed this Sep 27, 2022
@Hari-07 Hari-07 deleted the strokecap-progress-indicator branch September 27, 2022 06:38
/// The Progress Indicator's line endings
///
/// Defaults to [StrokeCap.square]
final StrokeCap strokeCap;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this for the value? Or the track? It may be beneficial to add both options where relevant, like the linear indicator.

Copy link
Contributor

@Piinks Piinks left a comment

Choose a reason for hiding this comment

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

Can this also be added to the corresponding themes when the new PR is staged? :)

@Piinks
Copy link
Contributor

Piinks commented Mar 14, 2023

Also for consideration, should this be handled with StrokeCap? Or with a radius parameter? I think of how we do this with Slider and Scrollbar.. folks like to customize the curvature

@bernaferrari
Copy link
Contributor

I could possibly work on this, but... hmm... this is tricky with radius. If you know how to solve, I can make a PR:

image

@Piinks
Copy link
Contributor

Piinks commented Mar 14, 2023

If you know how to solve, I can make a PR:

I don't right now, but @Hari-07 mentioned they could reopen a new PR.
In the case of the circular one, maybe radius is not the right value. Just throwing out ideas. :)

Thanks @bernaferrari!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants