Skip to content
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

Get image from path #26

Open
agnoam opened this issue May 26, 2019 · 4 comments
Open

Get image from path #26

agnoam opened this issue May 26, 2019 · 4 comments

Comments

@agnoam
Copy link

agnoam commented May 26, 2019

In Share object there is a path property.
How do I get the image from it ?

@r0ck3r
Copy link

r0ck3r commented May 28, 2019

Path propery returns content uri like this: content://media/external/images/media/30
Don't know too how to access this url from flutter

@dorklein
Copy link

dorklein commented Aug 3, 2019

I also don't know how to access the image from path: content://0@media....
Is there a way to get the file and save it in the app's folder?

@agnoam
Copy link
Author

agnoam commented Aug 4, 2019

I found something that works with Google Photos content URIs,
try flutter_absolute_path

@dukaric1991
Copy link

Thats how i show image from Image path.

Container(
              decoration: new BoxDecoration(
                borderRadius: new BorderRadius.all(new Radius.circular(10.0)),
                image: new DecorationImage(
                  image: FileImage(
              new File(photo.photo_path),
            ),
                  fit: BoxFit.cover,
                ),
              ),
            ),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants