-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opening Downloaded HTML Files #12
Comments
To get files outside an App, you can use the path_provider plugin and then call the getExternalStorageDirectory function. You get the HTML string of the file and then call
On iOS you can't access outside the app's sandbox! So, you need a way to put the file that you want show in the App "directory" in order to make it work in a cross-platform way. |
Okay thank you for the quick reply. I am using the getApplicationDocumentsDirectory() so all files are downloaded into com.exampleapp/app_flutter/ebooks/book1/* I realized that my issue was layout overflow which prevented any of the content from displaying. |
Ok!
I think that happens because, like said in the AndroidView documentation:
The support for Android native views is not full stable yet unfortunately. |
Yeh still early days unfortunately. Thank you for your hard work |
Could I ask for a feature request? I'm trying to figure out this myself but it's beyond my knowledge. Would it be possible to add the ability to restrict web content to the height of the container then override the swipe gesture used for back and forward to act as the next page of the split content, similar to an ebook? thanks |
…x_crash_that_runJavaScriptAlertPanelWithMessage_is_called_while_App_in_the_background TWECACAPP-651 fix crash that runJavaScriptAlertPanelWithMessage is called while App in the background
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue. |
Hello, I have an epub which is downloaded to the user's device, the HTML files are extracted into a folder within the applications directory. The examples provided only refer to files being located inside the assets folder. How can I display files downloaded elsewhere?
Thanks.
The text was updated successfully, but these errors were encountered: