mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 16:48:16 +08:00
mod: grpc reply: jump to vote
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -699,20 +699,21 @@ class ReplyItemGrpc extends StatelessWidget {
|
|||||||
// String matchStr = match[0]!;
|
// String matchStr = match[0]!;
|
||||||
spanChildren.add(
|
spanChildren.add(
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text: '投票: ${content.vote.title}',
|
text: '投票: ${content.vote.title}',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Theme.of(context).colorScheme.primary,
|
color: Theme.of(context).colorScheme.primary,
|
||||||
),
|
),
|
||||||
recognizer: TapGestureRecognizer()..onTap = () {}
|
recognizer: TapGestureRecognizer()
|
||||||
// Get.toNamed(
|
..onTap = () {
|
||||||
// '/webview',
|
Get.toNamed(
|
||||||
// parameters: {
|
'/webview',
|
||||||
// 'url': content.vote['url'],
|
parameters: {
|
||||||
// 'type': 'vote',
|
'url':
|
||||||
// 'pageTitle': content.vote.title,
|
'https://t.bilibili.com/vote/h5/index/#/result?vote_id=${content.vote.id}',
|
||||||
// },
|
},
|
||||||
// ),
|
);
|
||||||
),
|
},
|
||||||
|
),
|
||||||
);
|
);
|
||||||
return '';
|
return '';
|
||||||
}, onNonMatch: (String str) {
|
}, onNonMatch: (String str) {
|
||||||
|
|||||||
Reference in New Issue
Block a user