-
Notifications
You must be signed in to change notification settings - Fork 1k
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
support for custom text property for a subtitle #480
Conversation
Thank you @ekuleshov for your PR! |
You may want to reopen #479 |
@Ahmadre I tried to change
The Unfortunately I could not make generic types work. Getting a type case issue at runtime even without Now I'm not sure if it is the best way to approach this. Or perhaps maybe the subtitleBuilder could be changed to take in a What do you think? |
…builder # Conflicts: # example/lib/app/app.dart # lib/src/chewie_player.dart # lib/src/cupertino/cupertino_controls.dart
thank you for your suggestions. I will have a look at it the next week. I'm on vacation :D |
LGTM @ekuleshov :) Could you please update your branch with the latest master? After that I would merge this! I really like it and I think this way we got much more flexibility! And could you check the CI-build errors and correct them in your branch? |
Which part? Like I said, I could not make generified variant work. A variant with extending |
It seems like to make subtitles to use generic value instead of String will require generic type all the way up to the All in all, it seems like coupling subtitles into every video control implementation is too restrictive. It would be better to decouple subtitles from that and use a separate widget overlay instead. Somewhat similar to what |
I meant the actual changes with dynamic looks good! We can do that like in the first step. |
…builder # Conflicts: # example/lib/app/app.dart # lib/src/chewie_player.dart # lib/src/cupertino/cupertino_controls.dart # lib/src/material/material_controls.dart # lib/src/material/material_desktop_controls.dart # lib/src/models/subtitle_model.dart
@Ahmadre okay. I re-did the variant with |
@Ahmadre do you have a timeline on getting this change into a plugin release? |
Support for custom RichText subtitles #479