Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] Give CurrentPosition and RemainingDuration fixed widths. #1045

Open
ChopinDavid opened this issue Jan 3, 2025 · 0 comments · May be fixed by #1046
Open

[FEATURE REQUEST] Give CurrentPosition and RemainingDuration fixed widths. #1045

ChopinDavid opened this issue Jan 3, 2025 · 0 comments · May be fixed by #1046
Assignees
Labels
enhancement New feature or request

Comments

@ChopinDavid
Copy link

ChopinDavid commented Jan 3, 2025

Is your feature request related to a problem? Please describe.
I am using CurrentPosition, ProgressBar, and RemainingDuration together in a Row. Since CurrentPosition and RemainingDuration do not have fixed widths, my ProgressBar's width is changing each second as it is taking up the available space in the Row.

Screenshot

Screen.Recording.2025-01-03.at.2.12.45.PM.mov

Describe the solution you'd like
I was thinking that we wrap the Text widgets used within CurrentPosition and RemainingDuration in a Stack. In this Stack, we can have another Text widget with a Colors.transparent color that is set to the widest possible string. If the associated duration is > 1hour, this value would be 00:00:00. If associated duration is < 1hour, this value would be 00:00.

Describe alternatives you've considered
Using a mono-spaced font?

Additional context
N/a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants