feat: fav note page

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-03-28 21:25:39 +08:00
parent da3f64feab
commit cc774015f9
15 changed files with 487 additions and 91 deletions

View File

@@ -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,
),
);
}

View File

@@ -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}',
),