fix:切换播放问题
This commit is contained in:
parent
def8b49505
commit
5fc3edfbe4
@ -165,13 +165,13 @@ class KtExploreLogic extends GetxController {
|
||||
|
||||
try {
|
||||
await controller.initialize();
|
||||
if (index == state.currentPage) {
|
||||
final mainLogic = Get.find<KtMainLogic>();
|
||||
if(mainLogic.curIndex == 1) controller.play();
|
||||
final mainLogic = Get.find<KtMainLogic>();
|
||||
if (index == state.currentPage && mainLogic.curIndex == 1) {
|
||||
controller.play();
|
||||
update();
|
||||
}
|
||||
controller.addListener(() {
|
||||
if (state.currentPage == index) update();
|
||||
if (state.currentPage == index && mainLogic.curIndex == 1) update();
|
||||
|
||||
if (controller.value.isCompleted && !controller.value.isBuffering) {
|
||||
onPageChanged(index + 1, isToggle: true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user