flutter_webview_plugin icon indicating copy to clipboard operation
flutter_webview_plugin copied to clipboard

Load pdf from assets into Webview

Open isorensen opened this issue 6 years ago • 1 comments

Hello, I'm trying visualize a pre-loaded pdf file (project asset) with Webview, and it works. However, I can't do it without entering full file path (local).

I'd like to achieve: WebviewScaffold( url: 'assets/pdfs/doc01.pdf', withLocalUrl: true)

But I need to enter this in order to work: WebviewScaffold( url: 'file:///Users/eduardosorensen/flutter_projects/my_project/assets/pdfs/doc01.pdf', withLocalUrl: true)

Any ideas? Thank you

isorensen avatar Sep 08 '19 14:09 isorensen

i get the same issue

deepak-gts avatar Jun 13 '22 07:06 deepak-gts