fluttercommunity / fluttercommunity/flutter_webview_plugin

Load pdf from assets into Webview

Open
#547 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.5k
Forks
938
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.