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)
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