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 @override
void didUpdateWidget(covariant VideoWidget oldWidget) { void didUpdateWidget(covariant VideoWidget oldWidget) {
super.didUpdateWidget(oldWidget); super.didUpdateWidget(oldWidget);
if (widget.details.mediaUrl != oldWidget.details.mediaUrl) {
videoController.dispose();
_initController();
return;
}
if (widget.isActive != oldWidget.isActive) { if (widget.isActive != oldWidget.isActive) {
if (widget.isActive) { if (widget.isActive) {
videoController.play(); videoController.play();

View File

@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts # In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix. # of the product and file versions while build-number is used as the build suffix.
version: 1.4.4+65 version: 1.4.5+66
environment: environment:
sdk: ^3.9.0-100.2.beta sdk: ^3.9.0-100.2.beta