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