mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: video tag
Closes #767 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -102,13 +102,7 @@ InlineSpan? richNode(item, BuildContext context) {
|
||||
SmartDialog.showToast('未获取到链接');
|
||||
return;
|
||||
}
|
||||
if (url.startsWith('//')) {
|
||||
PiliScheme.routePushFromUrl('https:$url');
|
||||
return;
|
||||
}
|
||||
PageUtils.handleWebview(
|
||||
url.startsWith('//') ? "https://$url" : url,
|
||||
);
|
||||
PiliScheme.routePushFromUrl(url);
|
||||
},
|
||||
child: Text(
|
||||
i.text ?? '',
|
||||
|
||||
@@ -710,18 +710,26 @@ class _VideoInfoState extends State<VideoInfo> {
|
||||
],
|
||||
if (videoIntroController.videoTags is List &&
|
||||
videoIntroController.videoTags.isNotEmpty) ...[
|
||||
const SizedBox(height: 8),
|
||||
Wrap(
|
||||
GestureDetector(
|
||||
onTap: () {},
|
||||
behavior: HitTestBehavior.opaque,
|
||||
child: Container(
|
||||
width: double.infinity,
|
||||
padding: const EdgeInsets.only(top: 8),
|
||||
child: Wrap(
|
||||
spacing: 8,
|
||||
runSpacing: 8,
|
||||
children: (videoIntroController.videoTags as List)
|
||||
children: (videoIntroController.videoTags
|
||||
as List)
|
||||
.map(
|
||||
(item) => SearchText(
|
||||
fontSize: 13,
|
||||
text: item['tag_name'],
|
||||
onTap: (_) => Get.toNamed(
|
||||
'/searchResult',
|
||||
parameters: {'keyword': item['tag_name']},
|
||||
parameters: {
|
||||
'keyword': item['tag_name']
|
||||
},
|
||||
),
|
||||
onLongPress: (_) =>
|
||||
Utils.copyText(item['tag_name']),
|
||||
@@ -729,6 +737,8 @@ class _VideoInfoState extends State<VideoInfo> {
|
||||
)
|
||||
.toList(),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user