Skip to content

fix(voice): keep the track centred while the speed label is shown - #16

Merged
jsfraz merged 1 commit into
developmentfrom
fix/voice-player-centering
Nov 17, 2026
Merged

jsfraz merged 1 commit into
developmentfrom
fix/voice-player-centering

Conversation

@jsfraz

@jsfraz jsfraz commented Nov 17, 2026

Copy link
Copy Markdown
Owner

The speed control sits under the time label, so when playback started the column grew downwards and the track plus time were pushed to the top of the bubble — the pause button stayed centred, the line it belongs to did not.

The track now gets the same 16px of room above it as the speed line takes below it, so its centre lands on the play/pause button's centre. The bubble is 32px taller while playing (it already grew by 14px before).

Alternative if you prefer a constant bubble height: put the speed inline after the time instead of on its own line — say the word and I will switch it.

Verification: flutter analyze --no-fatal-infos clean, flutter test 152/152, hot reloaded into the running debug build. The idle player measures centred (slider centre 644 = button centre 644); the playing state could not be measured live because playback did not start from a toolkit tap.

The speed control sits under the time, so the column grew downwards when
playback started and pushed the track and the time up: the pause button
stayed centred while the line it belongs to drifted towards the top.

Reserving the same height above the track as the speed line below it puts
the track's centre back on the play button's centre.
@jsfraz
jsfraz merged commit 76d56f2 into development Nov 17, 2026
1 check passed
@jsfraz
jsfraz deleted the fix/voice-player-centering branch November 17, 2026 23:19
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