feat: open in browser

Closes #140

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-11 10:05:01 +08:00
parent 54d13fe7f2
commit 2d338450f4
17 changed files with 60 additions and 166 deletions

View File

@@ -108,16 +108,9 @@ InlineSpan? richNode(item, context) {
PiliScheme.routePush(Uri.parse(url));
return;
}
Get.toNamed(
'/webview',
parameters: {
'url': url.startsWith('//')
? "https://${url.split('//').last}"
: url,
'type': 'url',
'pageTitle': ''
},
);
Utils.handleWebview(url.startsWith('//')
? "https://${url.split('//').last}"
: url);
},
child: Text(
i.text ?? '',