-
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
controller copyWith not effective in fullscreen #665
Comments
Can you please submit a example project demonstrating this issue? That way I can better diagnose it. Thanks. |
This is my widget:
|
Please post this in an example repo. This will help me point Also, based on my initial reading, the reason it might not be working is because the One possible solution is to create a builder function for generating the overlay widget that is a mutable member of Bottom line, you'll have to make a change to I can most certainly review any PR you submit to this effect. |
I needed the overlay to be updated based on if it was fullscreen or not. Added this PR #713 |
I am changing the overlay when the video is playing. I added a listener to my controller and in it, I check the isPlaying property. If the video is playing, I change the overlay by updating the controller using the copyWith method (in a setState).
It works well when the video is not in fullscreen.
When in fullscreen, the overlay doesn't get changed, although isPlaying is true and the line where I update the controller gets executed.
The text was updated successfully, but these errors were encountered: