mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-15 22:56:15 +08:00
feat: fav note page
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -1622,6 +1622,11 @@ class VideoDetailController extends GetxController
|
||||
}
|
||||
|
||||
void showNoteList(BuildContext context) async {
|
||||
String? title;
|
||||
try {
|
||||
title =
|
||||
Get.find<VideoIntroController>(tag: heroTag).videoDetail.value.title;
|
||||
} catch (_) {}
|
||||
if (plPlayerController.isFullScreen.value) {
|
||||
Utils.showFSSheet(
|
||||
context,
|
||||
@@ -1633,6 +1638,7 @@ class VideoDetailController extends GetxController
|
||||
enableSlide: false,
|
||||
heroTag: heroTag,
|
||||
isStein: graphVersion != null,
|
||||
title: title,
|
||||
),
|
||||
)
|
||||
: NoteListPage(
|
||||
@@ -1640,6 +1646,7 @@ class VideoDetailController extends GetxController
|
||||
enableSlide: false,
|
||||
heroTag: heroTag,
|
||||
isStein: graphVersion != null,
|
||||
title: title,
|
||||
),
|
||||
isFullScreen: () => plPlayerController.isFullScreen.value,
|
||||
);
|
||||
@@ -1650,6 +1657,7 @@ class VideoDetailController extends GetxController
|
||||
oid: oid.value,
|
||||
heroTag: heroTag,
|
||||
isStein: graphVersion != null,
|
||||
title: title,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -20,12 +20,14 @@ class NoteListPage extends CommonSlidePage {
|
||||
this.oid,
|
||||
this.upperMid,
|
||||
required this.isStein,
|
||||
required this.title,
|
||||
});
|
||||
|
||||
final dynamic heroTag;
|
||||
final dynamic oid;
|
||||
final dynamic upperMid;
|
||||
final bool isStein;
|
||||
final dynamic title;
|
||||
|
||||
@override
|
||||
State<NoteListPage> createState() => _NoteListPageState();
|
||||
@@ -109,6 +111,8 @@ class _NoteListPageState extends CommonSlidePageState<NoteListPage> {
|
||||
onPressed: () {
|
||||
_key.currentState?.showBottomSheet(
|
||||
(context) => WebviewPageNew(
|
||||
oid: widget.oid,
|
||||
title: widget.title,
|
||||
url:
|
||||
'https://www.bilibili.com/h5/note-app?oid=${widget.oid}&pagefrom=ugcvideo&is_stein_gate=${widget.isStein ? 1 : 0}',
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user