mirror of
https://github.com/wger-project/flutter.git
synced 2026-11-28 17:08:29 +01:00
The controls overlay reads controller.value.isPlaying to decide whether to show the central play icon, but reading .value does not subscribe to the controller's notifications. VideoPlayerController is a ValueNotifier, so after play() is called the overlay is never rebuilt and the play icon stays on top of the playing video. Wrap _ControlsOverlay in a ValueListenableBuilder tied to the controller so it rebuilds on play/pause (and keeps the playback-speed label current).