try to add linux webview support

This commit is contained in:
haorendashu
2025-02-08 19:05:31 +08:00
parent 725234ce98
commit beb20091ee
20 changed files with 689 additions and 40 deletions

View File

@@ -25,10 +25,10 @@ class _WebTabsSelectItemComponent extends State<WebTabsSelectItemComponent> {
Future<void> loadFavicon() async {
if (widget.webInfo.controller != null) {
var favicons = await widget.webInfo.controller!.getFavicons();
if (favicons.isNotEmpty) {
var favicon = await widget.webInfo.controller!.getFavicon();
if (StringUtil.isNotBlank(favicon)) {
setState(() {
faviconUrl = favicons.first.url.toString();
faviconUrl = favicon;
});
}
}