Skip to content

fix: clean progress bar edges and pill-shaped ends - #981

Open
Ortes wants to merge 2 commits into
fluttercommunity:masterfrom
Fullphysio:fix/progress-bar-track-under-played
Open

Ortes wants to merge 2 commits into
fluttercommunity:masterfrom
Fullphysio:fix/progress-bar-track-under-played

Conversation

@Ortes

@Ortes Ortes commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

The progress bar shows a light outline around the played part, strongest on the rounded corners. It is most visible when the played color is close to what is behind the bar.

The track, buffered and played parts were each painted as their own rounded bar on top of one another. Every layer anti-aliased the same edges, so the track under the played part showed through.

They are now painted as plain rectangles in one layer, clipped once to the rounded bar shape. Colors do not change, the translucent defaults included. The corner radius is now half the bar height, so the ends are full pills. It was a fixed 4 px.

Rows: default colors, a dark played color on a matching background, default colors with chapters.

Before After
before after

Left end of the second row, zoomed. Before on top, after below:

zoom

flutter test and flutter analyze pass.

The track, buffered and played parts were each painted as their own
rounded bar on top of one another. Every layer anti-aliased the same
edges, so the track under the played part showed through as a light
outline, most visible on the rounded corners.

They are now painted as plain rectangles in one layer, clipped once to
the rounded bar shape. Colors stay the same, translucent defaults
included. The corner radius is half the bar height, so the ends are
full pills.
@codecov

codecov Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.43%. Comparing base (b4cd2de) to head (a4ddd39).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #981      +/-   ##
==========================================
+ Coverage   83.98%   84.43%   +0.44%     
==========================================
  Files          48       48              
  Lines        3060     3109      +49     
==========================================
+ Hits         2570     2625      +55     
+ Misses        490      484       -6     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

The played part ends rounded again, so a handle smaller than the bar
does not reveal a square end. A negative position paints at the start
of the bar instead of before it.
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.

1 participant