-
Notifications
You must be signed in to change notification settings - Fork 369
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
Dart/Flutter cannot parse content:// URIs natively #4
Comments
Please use this library to get the absolute path that will work with the dart class File |
dart/flutter does not support android content uri yet as far as my knowledge |
Right, but this library returns, in flutter, the content uri through the message channel. So we get the image uri, but we can't do anything about it. Unless I am missing something this makes the plugin unusable for sharing images. Right? |
Unfortunately yes, or at least with this library alone. I forgot to mention this in the documentation. My plan is to make this library return the absolute path instead of a reference uri. In the meantime, please use this library in conjunction with the library i mention above. |
I am open to pull requests if anyone is interested. |
The api now returns a path that can directly be used with File.dart |
Awesome work @KasemJaffer Thank you!! |
I may be missing something, but while I am successfully getting the Content URI (i.e. content://com.google.android.apps.photos.contentprovider/0/1/content%3A%2F%2Fmedia%2Fexternal%2Fimages%2Fmedia%2F41076/LARGE/JPG/1337981437), I am unable to actually retrieve the file in Flutter due to this issue:
flutter/flutter#25659
Does this sound right?
The text was updated successfully, but these errors were encountered: