Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[video_player]add minHeight property of VideoProgressIndicator#3375

Closed
ManInTheWind wants to merge 2 commits intoflutter:mainfrom
ManInTheWind:main
Closed

[video_player]add minHeight property of VideoProgressIndicator#3375
ManInTheWind wants to merge 2 commits intoflutter:mainfrom
ManInTheWind:main

Conversation

@ManInTheWind
Copy link

@ManInTheWind ManInTheWind commented Mar 5, 2023

add nullable minHeight of VideoProgressIndicator,which is not destructive and quiet convenient to set process indicator height

image

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

If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.

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 relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/packages repo does use dart format.)
  • I signed the CLA.
  • The title of the PR starts with the name of the package surrounded by square brackets, e.g. [shared_preferences]
  • I listed at least one issue that this PR fixes in the description above.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
  • I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
  • 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.

Defaults to null.The minHeight of process indicator.Associate to [LinearProgressIndicator]
 you can also set height via [ProgressIndicatorTheme]
@ManInTheWind ManInTheWind requested a review from tarrinneal as a code owner March 5, 2023 10:10
@google-cla
Copy link

google-cla bot commented Mar 5, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@ManInTheWind ManInTheWind changed the title add minHeight property of VideoProgressIndicator [video_player]add minHeight property of VideoProgressIndicator Mar 5, 2023
@BraveEvidence
Copy link

This will help https://www.youtube.com/watch?v=IMQdSTlTXjA

@stuartmorgan-g
Copy link
Collaborator

Thanks for the contribution! It's not clear to me from the description and screenshot what the actual problem you are trying to solve is. Please file an issue (as requested in the PR template), and explain in the issue what the use case is and the problem you are solving, so that we have context to review this.

You’ve checked boxes in the PR checklist above that are not reflected in this PR, so I’m assuming this is a work in progress and am marking it as a Draft. Please review the checklist, updating the PR as appropriate, and when the checklist reflects the state of the PR as posted please feel free to mark it as ready for review.

@stuartmorgan-g stuartmorgan-g marked this pull request as draft April 4, 2023 19:47
@ManInTheWind
Copy link
Author

@stuartmorgan Hi!Thank you for your kindly reply.The problem(maybe its not a really problem), as we all know, the VideoProcessIndicator is build with LinearProgressIndicator, and sure we can set or change the indicator height through ProgressIndicatorThemeData, however I think set the minHeigth by pass the minHeight paramater to VideoProcessIndicator will be more easy for people to dynamic change it. For example , when people drag the area of proccess indicator to forward or backward , we can just setState the heigth variate to brace it and see more clearly, after drag gesture we set the normal Height back.So I think expose the minHeigth paramater will make us to achieve this effect more easier.

I'm sorry that I actually didnt updated pubspec.yaml and CHANGELOG.md. I only change the code and add test case.
Please Let me know how to follow up on the next move about this PR.

Thank you!

@stuartmorgan-g
Copy link
Collaborator

Please Let me know how to follow up on the next move about this PR.

My previous comment explains what the next steps are.

@ManInTheWind ManInTheWind marked this pull request as ready for review April 5, 2023 12:08
@stuartmorgan-g
Copy link
Collaborator

stuartmorgan-g commented Apr 11, 2023

@ManInTheWind Per my comment above:

Please file an issue (as requested in the PR template), and explain in the issue what the use case is and the problem you are solving, so that we have context to review this.

There's still not a link to an issue here; see also the 2nd item here about why this is important.

Also, on the version change, you need to do those steps, not just uncheck the boxes.

@stuartmorgan-g stuartmorgan-g marked this pull request as draft April 11, 2023 19:53
@stuartmorgan-g
Copy link
Collaborator

Since this is marked as a draft and hasn't been updated in the last month I'm going to close it to clean out our review queue. Please don't hesitate to submit a new PR if you decide to revisit this. Thanks!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants