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('未获取到链接'); 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 ?? '',

View File

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