mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
refa: article (#757)
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -28,12 +28,10 @@ class SearchArticleController
|
||||
if (cvid != null) {
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
Get.toNamed(
|
||||
'/htmlRender',
|
||||
'/articlePage',
|
||||
parameters: {
|
||||
'url': 'https://www.bilibili.com/read/cv$cvid',
|
||||
'title': '',
|
||||
'id': 'cv$cvid',
|
||||
'dynamicType': 'read'
|
||||
'id': cvid,
|
||||
'type': 'read',
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
@@ -122,12 +122,13 @@ class _SearchArticlePanelState extends CommonSearchPanelState<
|
||||
final item = list[index];
|
||||
return InkWell(
|
||||
onTap: () {
|
||||
Get.toNamed('/htmlRender', parameters: {
|
||||
'url': 'www.bilibili.com/read/cv${item.id}',
|
||||
'title': item.subTitle ?? '',
|
||||
'id': 'cv${item.id}',
|
||||
'dynamicType': 'read'
|
||||
});
|
||||
Get.toNamed(
|
||||
'/articlePage',
|
||||
parameters: {
|
||||
'id': '${item.id}',
|
||||
'type': 'read',
|
||||
},
|
||||
);
|
||||
},
|
||||
onLongPress: () => imageSaveDialog(
|
||||
context: context,
|
||||
|
||||
Reference in New Issue
Block a user