Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-21 11:48:42 +08:00
parent 1efd62803a
commit ac60ac417b
130 changed files with 1631 additions and 2132 deletions

View File

@@ -59,9 +59,7 @@ TextSpan? richNode(
text: ' ${i.text}',
style: style,
recognizer: TapGestureRecognizer()
..onTap = () {
Get.toNamed('/member?mid=${i.rid}');
},
..onTap = () => Get.toNamed('/member?mid=${i.rid}'),
),
);
break;
@@ -72,15 +70,13 @@ TextSpan? richNode(
text: i.origText!,
style: style,
recognizer: TapGestureRecognizer()
..onTap = () {
Get.toNamed(
'/searchResult',
parameters: {
'keyword':
i.origText!.substring(1, i.origText!.length - 1),
},
);
},
..onTap = () => Get.toNamed(
'/searchResult',
parameters: {
'keyword':
i.origText!.substring(1, i.origText!.length - 1),
},
),
),
);
break;
@@ -172,15 +168,13 @@ TextSpan? richNode(
text: '${i.origText} ',
style: style,
recognizer: TapGestureRecognizer()
..onTap = () {
Get.toNamed(
'/webview',
parameters: {
'url':
'https://www.bilibili.com/h5/lottery/result?business_id=${item.idStr}'
},
);
},
..onTap = () => Get.toNamed(
'/webview',
parameters: {
'url':
'https://www.bilibili.com/h5/lottery/result?business_id=${item.idStr}'
},
),
),
);
break;
@@ -204,9 +198,8 @@ TextSpan? richNode(
recognizer: i.jumpUrl == null
? null
: (TapGestureRecognizer()
..onTap = () {
PiliScheme.routePushFromUrl(i.jumpUrl!);
}),
..onTap =
() => PiliScheme.routePushFromUrl(i.jumpUrl!)),
),
);
break;