mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: show video note list
Closes #376 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -20,6 +20,7 @@ import 'package:PiliPlus/models/video/play/subtitle.dart';
|
||||
import 'package:PiliPlus/models/video_detail_res.dart';
|
||||
import 'package:PiliPlus/pages/search/widgets/search_text.dart';
|
||||
import 'package:PiliPlus/pages/video/detail/introduction/controller.dart';
|
||||
import 'package:PiliPlus/pages/video/detail/note/note_list_page.dart';
|
||||
import 'package:PiliPlus/pages/video/detail/related/controller.dart';
|
||||
import 'package:PiliPlus/pages/video/detail/reply/controller.dart';
|
||||
import 'package:PiliPlus/pages/video/detail/view_v.dart' show ViewPointsPage;
|
||||
@@ -1343,9 +1344,9 @@ class VideoDetailController extends GetxController
|
||||
childKey.currentState?.showBottomSheet(
|
||||
enableDrag: false,
|
||||
backgroundColor: Colors.transparent,
|
||||
(context) => ViewPointsPage(
|
||||
child: _postPanel(),
|
||||
),
|
||||
(context) => GStorage.collapsibleVideoPage
|
||||
? ViewPointsPage(child: _postPanel())
|
||||
: _postPanel(),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -2175,4 +2176,18 @@ class VideoDetailController extends GetxController
|
||||
debugPrint('_getDmTrend: $e');
|
||||
}
|
||||
}
|
||||
|
||||
void showNoteList() async {
|
||||
if (plPlayerController.isFullScreen.value) {
|
||||
Utils.showFSSheet(
|
||||
child: NoteListPage(oid: oid.value),
|
||||
isFullScreen: plPlayerController.isFullScreen.value,
|
||||
);
|
||||
} else {
|
||||
childKey.currentState?.showBottomSheet(
|
||||
backgroundColor: Colors.transparent,
|
||||
(context) => NoteListPage(oid: oid.value),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user