flutter_webview_plugin icon indicating copy to clipboard operation
flutter_webview_plugin copied to clipboard

How to launch/load local html for iOS?

Open mekery opened this issue 4 years ago • 0 comments

I have a html file in assets/index.html, I can launch it for Android use the url like:

String localUrl = 'file:///android_asset/flutter_assets/assets/index.html';

What url should I use for iOS? Following is the launch code:

_flutterWebviewPlugin.launch(
    localUrl,
    ignoreSSLErrors: true,
    withLocalUrl: true,
    localUrlScope: 'assets/',
    allowFileURLs: true,
    hidden: true
);

mekery avatar May 03 '21 03:05 mekery