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('未获取到链接');
|
SmartDialog.showToast('未获取到链接');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (url.startsWith('//')) {
|
PiliScheme.routePushFromUrl(url);
|
||||||
PiliScheme.routePushFromUrl('https:$url');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
PageUtils.handleWebview(
|
|
||||||
url.startsWith('//') ? "https://$url" : url,
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
i.text ?? '',
|
i.text ?? '',
|
||||||
|
|||||||
@@ -710,24 +710,34 @@ class _VideoInfoState extends State<VideoInfo> {
|
|||||||
],
|
],
|
||||||
if (videoIntroController.videoTags is List &&
|
if (videoIntroController.videoTags is List &&
|
||||||
videoIntroController.videoTags.isNotEmpty) ...[
|
videoIntroController.videoTags.isNotEmpty) ...[
|
||||||
const SizedBox(height: 8),
|
GestureDetector(
|
||||||
Wrap(
|
onTap: () {},
|
||||||
spacing: 8,
|
behavior: HitTestBehavior.opaque,
|
||||||
runSpacing: 8,
|
child: Container(
|
||||||
children: (videoIntroController.videoTags as List)
|
width: double.infinity,
|
||||||
.map(
|
padding: const EdgeInsets.only(top: 8),
|
||||||
(item) => SearchText(
|
child: Wrap(
|
||||||
fontSize: 13,
|
spacing: 8,
|
||||||
text: item['tag_name'],
|
runSpacing: 8,
|
||||||
onTap: (_) => Get.toNamed(
|
children: (videoIntroController.videoTags
|
||||||
'/searchResult',
|
as List)
|
||||||
parameters: {'keyword': item['tag_name']},
|
.map(
|
||||||
),
|
(item) => SearchText(
|
||||||
onLongPress: (_) =>
|
fontSize: 13,
|
||||||
Utils.copyText(item['tag_name']),
|
text: item['tag_name'],
|
||||||
),
|
onTap: (_) => Get.toNamed(
|
||||||
)
|
'/searchResult',
|
||||||
.toList(),
|
parameters: {
|
||||||
|
'keyword': item['tag_name']
|
||||||
|
},
|
||||||
|
),
|
||||||
|
onLongPress: (_) =>
|
||||||
|
Utils.copyText(item['tag_name']),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
.toList(),
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user