v1.4.5+66
All checks were successful
Flutter Schmutter / build (push) Successful in 3m34s

This commit is contained in:
2025-06-22 03:40:13 +02:00
parent 95f6dcfe2b
commit 7a1f76ee85
2 changed files with 8 additions and 1 deletions

View File

@ -85,6 +85,13 @@ class _VideoWidgetState extends State<VideoWidget> {
@override
void didUpdateWidget(covariant VideoWidget oldWidget) {
super.didUpdateWidget(oldWidget);
if (widget.details.mediaUrl != oldWidget.details.mediaUrl) {
videoController.dispose();
_initController();
return;
}
if (widget.isActive != oldWidget.isActive) {
if (widget.isActive) {
videoController.play();