Skip to content

Commit

Permalink
Merge pull request #1 from orz12/fix_orientation
Browse files Browse the repository at this point in the history
重构全屏逻辑,修复全屏弹幕与横屏错位问题
  • Loading branch information
KoolShow authored Dec 18, 2023
2 parents 6dd1360 + 4d07f15 commit 213feac
Show file tree
Hide file tree
Showing 5 changed files with 328 additions and 286 deletions.
6 changes: 3 additions & 3 deletions lib/pages/danmaku/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ class _PlDanmakuState extends State<PlDanmaku> {
// 根据position判断是否有已缓存弹幕。没有则请求对应段
int segIndex = (currentPosition / (6 * 60 * 1000)).ceil();
segIndex = segIndex < 1 ? 1 : segIndex;
print('🌹🌹: ${segIndex}');
print('🌹🌹: ${ctr.dmSegList.length}');
print('🌹🌹: ${ctr.hasrequestSeg.contains(segIndex - 1)}');
// print('🌹🌹: ${segIndex}');
// print('🌹🌹: ${ctr.dmSegList.length}');
// print('🌹🌹: ${ctr.hasrequestSeg.contains(segIndex - 1)}');
if (segIndex - 1 >= ctr.dmSegList.length ||
(ctr.dmSegList[segIndex - 1].elems.isEmpty &&
!ctr.hasrequestSeg.contains(segIndex - 1))) {
Expand Down
4 changes: 2 additions & 2 deletions lib/pages/video/detail/controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ class VideoDetailController extends GetxController
}

showReplyReplyPanel() {
PersistentBottomSheetController<void>? ctr =
scaffoldKey.currentState?.showBottomSheet<void>((BuildContext context) {
PersistentBottomSheetController? ctr =
scaffoldKey.currentState?.showBottomSheet((BuildContext context) {
return VideoReplyReplyPanel(
oid: oid,
rpid: fRpid,
Expand Down
Loading

0 comments on commit 213feac

Please sign in to comment.