refa: article (#757)

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
dom
2025-04-26 14:54:22 +08:00
committed by GitHub
parent 64f7ba2a1a
commit 40fb93f036
87 changed files with 2628 additions and 993 deletions

View File

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

View File

@@ -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,