Compare commits

...

2 Commits

Author SHA1 Message Date
dom
b7b40c557e Release 2.0.7
Signed-off-by: dom <githubaccount56556@proton.me>
2026-05-05 10:41:19 +08:00
dom
d0373da5ca fix get video part dimension
Signed-off-by: dom <githubaccount56556@proton.me>
2026-05-05 10:41:19 +08:00
2 changed files with 7 additions and 5 deletions

View File

@@ -248,13 +248,15 @@ class VideoDetailController extends GetxController
if (width == null || height == null) {
if (isUgc && !isFileSource) {
final ugcIntroCtr = Get.find<UgcIntroController>(tag: heroTag);
final data = ugcIntroCtr.videoDetail.value;
if (data.cid == cid.value) {
final dimension = data.dimension!;
final cid = this.cid.value;
final part = ugcIntroCtr.videoDetail.value.pages?.firstWhereOrNull(
(e) => e.cid == cid,
);
if (part != null) {
final dimension = part.dimension!;
width = dimension.width!;
height = dimension.height!;
} else {
ugcIntroCtr.queryVideoIntro().whenComplete(_setVideoHeight);
return;
}
} else {

View File

@@ -17,7 +17,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# 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.
# update when release
version: 2.0.6+1
version: 2.0.7+1
environment:
sdk: ">=3.10.0"