Comments (17)
I totally agreed with you.
I've got the idea from the flutter itself; you can check the LinearProgressIndicator
widget. you can see that it changes the direction according to the context.
Are there some other popular apps that use RTL audio or video controls that I could check out?
I don't think there is examples as far as i know. And I think its ok for a progress bar to be LTR on a RTL app, it just will make more sense if it switches the directions according to the app context.
For the record, I've tried to use Transform
widget to flip the progress bar horizontally, it worked but not with labels. I'm sure this is a bad practice, however, it's a workaround that might be handy.
Transform(
alignment: Alignment.center,
transform: Matrix4.rotationY(math.pi),
child: ProgressBar(...),
)
I guess we wait to see if this interests others.
Thank you.
from audio_video_progress_bar.
from audio_video_progress_bar.
Interested in RTL support.
from audio_video_progress_bar.
Interested in RTL support.
It would be awesome if this package supported right-to-left (RTL) direction. However, for the time being, I've managed to achieve the desired results by utilizing the Flutter Transform.flip widget. I disabled the default labels and created custom ones connected to the progress listener.
This solution works perfectly, but it's just a workaround. It essentially involves integrating built-in components with a custom coding approach
from audio_video_progress_bar.
Can you make an image of what you would like it to look like? I'm not so familiar with how progress bars should look in RTL format.
from audio_video_progress_bar.
The thumb animation/movement start from right to the left
from audio_video_progress_bar.
how about the labels?
from audio_video_progress_bar.
The labels too, needs to change positions if RTL selected
from audio_video_progress_bar.
The labels too, needs to change positions if RTL selected
Can you add those to your image?
from audio_video_progress_bar.
The labels too, needs to change positions if RTL selected
Can you add those to your image?
from audio_video_progress_bar.
Thank you for the clarification. This is an interesting concept. I was previously aware of RTL text but I didn't realize that it affected things like audio controls. That makes sense, though.
Since this would require a significant change to the internal implementation of the code, I'd like to find out how big of a need this is. Are there some other popular apps that use RTL audio or video controls that I could check out?
from audio_video_progress_bar.
Are you building an audio app yourself?
from audio_video_progress_bar.
from audio_video_progress_bar.
If the transform works without the labels, you could turn the labels off and make your own labels with text widgets. That could be a temporary fix while we wait to see how many people are interested in this feature.
Another option would be to copy the source code to your app and modify it to your desired behavior.
If either of these things work for you, it would be helpful if you linked to your code so that others can see how you do it.
from audio_video_progress_bar.
This will help https://www.youtube.com/watch?v=IMQdSTlTXjA
from audio_video_progress_bar.
is there any solution for this?RTL support?
from audio_video_progress_bar.
Related Issues (20)
- Cannot display widget tree in devtool HOT 3
- Tests throws exception on MediaQuery
- Handle `onTap` separately than drag events HOT 1
- feature : specific location custom color HOT 2
- Progress Bar is not shown HOT 5
- Left round end cap disappears with --enable-impeller on iOS. HOT 6
- Undraggable slider HOT 4
- thumb glow dosen't dissapre after I put of my hand from slider HOT 2
- [bug] buffer value cross out the progress bar HOT 2
- The right time label overflows if If it is longer than '0:00' HOT 1
- Duration texts on the Progress Bar don't scale based on device text scaling factor HOT 2
- thumb style HOT 5
- feat:req:可以加个loading 状态吗 HOT 1
- Feature request
- Feature request HOT 2
- Increase the clickable area without visually increasing the progress bar? HOT 6
- Can we have the another thumb (secondory thumb) HOT 1
- Feature request
- bug: bar rendered outside the sizedBox HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from audio_video_progress_bar.