-
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
By default subtitles are off #700
base: master
Are you sure you want to change the base?
Conversation
Anyone can have the folllow up ont this ?? |
@PranavMasekar Looks good to me. I'll release it this weekend. |
Sure thanks for the reply @diegotori 🤩🤩 |
@diegotori Any updates on merging this PR ?? |
1 similar comment
@diegotori Any updates on merging this PR ?? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PranavMasekar, please re-sync your changes with master
's current changes.
Then work on the issues that were called out in your PR.
Thanks in advance.
lib/src/chewie_player.dart
Outdated
@@ -422,6 +425,9 @@ class ChewieController extends ChangeNotifier { | |||
/// Add a List of Subtitles here in `Subtitles.subtitle` | |||
Subtitles? subtitle; | |||
|
|||
/// Option to disable subtitle by default | |||
bool showSubtitle; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this final
.
lib/src/chewie_player.dart
Outdated
@@ -422,6 +425,9 @@ class ChewieController extends ChangeNotifier { | |||
/// Add a List of Subtitles here in `Subtitles.subtitle` | |||
Subtitles? subtitle; | |||
|
|||
/// Option to disable subtitle by default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace the documentation with:
///
/// Whether to display subtitles.
///
/// By default, this is set to `false`, which hides them.
///
@diegotori I have done the changes |
@@ -114,6 +114,7 @@ class _ChewieDemoState extends State<ChewieDemo> { | |||
videoPlayerController: _videoPlayerController1, | |||
autoPlay: true, | |||
looping: true, | |||
// showSubtitle: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of commenting it out, expand the example app so that there's a button or something similar that toggles subtitles.
any updates on this ? |
#648
Added a parameter showSubtitle by default value is false.