feat: show a hover-time indicator on the progress bar - #956
Open
Ortes wants to merge 2 commits into
Open
Conversation
Display a small floating pill with the timecode under the pointer while it hovers (or drags) the Material progress bar, so the user can see the exact position a click or seek will jump to. The pill is rendered as an overlay above the bar and follows the pointer horizontally, clamped to the bar's width. It only appears once the video is initialized and, because it is driven by hover events, never shows on touch devices.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #956 +/- ##
==========================================
- Coverage 43.82% 42.71% -1.11%
==========================================
Files 21 21
Lines 1602 1660 +58
==========================================
+ Hits 702 709 +7
- Misses 900 951 +51 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a small floating time indicator to the Material progress bar. While the pointer hovers (or drags) the bar, a pill shows the timecode at that position, so the user can see exactly where a click or seek will jump to — the behaviour people expect from YouTube/Netflix-style scrubbers.
The pill is rendered as an overlay above the bar and follows the pointer horizontally, clamped to the bar's width, with a small caret pointing at the exact spot. It uses the existing
formatDurationhelper, so it matches theposition / durationlabel already shown in the controls.Behaviour
progress_bar.dart; no public API changes.Notes
Scoped intentionally to the hover-time readout only — it does not set the hover cursor (that is handled separately in #950).