mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-25 10:38:40 +00:00
@@ -196,8 +196,7 @@ class LiveRoomController extends GetxController {
|
||||
);
|
||||
}
|
||||
|
||||
void scrollToBottom() {
|
||||
if (disableAutoScroll.value) return;
|
||||
void scrollToBottom([_]) {
|
||||
if (scrollController.hasClients) {
|
||||
scrollController.animateTo(
|
||||
scrollController.position.maxScrollExtent,
|
||||
@@ -231,9 +230,7 @@ class LiveRoomController extends GetxController {
|
||||
},
|
||||
),
|
||||
);
|
||||
WidgetsBinding.instance.addPostFrameCallback(
|
||||
(_) => scrollToBottom(),
|
||||
);
|
||||
WidgetsBinding.instance.addPostFrameCallback(scrollToBottom);
|
||||
} catch (_) {}
|
||||
}
|
||||
}
|
||||
@@ -334,9 +331,9 @@ class LiveRoomController extends GetxController {
|
||||
selfSend: isLogin && uid == accountService.mid,
|
||||
),
|
||||
);
|
||||
if (!isFullScreen) {
|
||||
if (!isFullScreen && !disableAutoScroll.value) {
|
||||
WidgetsBinding.instance.addPostFrameCallback(
|
||||
(_) => scrollToBottom(),
|
||||
scrollToBottom,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1646,6 +1646,9 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
||||
height: height,
|
||||
boxFit: BoxFit.cover,
|
||||
forceUseCacheWidth: true,
|
||||
getPlaceHolder: () => Center(
|
||||
child: Image.asset('assets/images/loading.png'),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user