opt: video tag

Closes #767

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-28 11:25:54 +08:00
parent 8fe6e3f4b7
commit 51750a4ad5
2 changed files with 29 additions and 25 deletions

View File

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

View File

@@ -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(),
),
),
),
],
],
),