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

@@ -219,12 +219,10 @@ class ChatItem extends StatelessWidget {
type = '专栏';
onTap = () {
Get.toNamed(
'/htmlRender',
'/articlePage',
parameters: {
'url': 'www.bilibili.com/opus/cv${content['id']}',
'title': '',
'id': 'cv${content['id']}',
'dynamicType': 'read'
'id': '${content['id']}',
'type': 'read',
},
);
};
@@ -463,12 +461,13 @@ class ChatItem extends StatelessWidget {
case MsgType.article_card:
return GestureDetector(
onTap: () async {
Get.toNamed('/htmlRender', parameters: {
'url': "https://www.bilibili.com/read/cv${content['rid']}/",
'title': content['title'] ?? "",
'id': "cv${content['rid']}",
'dynamicType': "read"
});
Get.toNamed(
'/articlePage',
parameters: {
'id': '${content['rid']}',
'type': "read",
},
);
},
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,