I am doing a flutter app to play video using flutter chewie player. I have given subtitle wrapper to display subtitle from a url in it. but i want to create a button in video playing screen to turn on and off the subtitle.Can anyone help on how to turn on and off the subtitle in subtitle wrapper. my subtitle wrapper code is as below:
SubTitleWrapper(
videoPlayerController: _videoPlayerController,
subtitleController: SubtitleController(
subtitleUrl:subtitle url,
showSubtitles: true),
videoChild: Chewie(controller: chewieController, ), ),
it will be help full if there is any example for the answer.