Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

flutter webview 访问url

 Future<void> launcherURL() async {
    // Uri uri = Uri(scheme: 'http',host: 'www.baidu.com');
    Uri url = Uri.parse('https://www.baidu.com');
    if (!await launchUrl(
      url,
      mode: LaunchMode.inAppWebView,
      webViewConfiguration: const WebViewConfiguration(enableJavaScript: true),
    )) {
      throw 'Could not launch $url';
    }
  }