opt: in-app webview

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-02-15 12:26:44 +08:00
parent 4b48aba2ae
commit d9611cce80
4 changed files with 41 additions and 6 deletions

View File

@@ -230,9 +230,9 @@ class _HtmlRenderPageState extends State<HtmlRenderPage>
),
),
IconButton(
tooltip: '用内置浏览器打开',
tooltip: '浏览器打开',
onPressed: () {
Utils.handleWebview(url.startsWith('http') ? url : 'https:$url');
Utils.inAppWebview(url.startsWith('http') ? url : 'https:$url');
},
icon: const Icon(Icons.open_in_browser_outlined, size: 19),
),
@@ -253,9 +253,9 @@ class _HtmlRenderPageState extends State<HtmlRenderPage>
),
),
PopupMenuItem(
onTap: () => {
Utils.handleWebview(
url.startsWith('http') ? url : 'https:$url')
onTap: () {
Utils.inAppWebview(
url.startsWith('http') ? url : 'https:$url');
},
child: const Row(
mainAxisSize: MainAxisSize.min,