Code Monkey home page Code Monkey logo

Comments (5)

renancaraujo avatar renancaraujo commented on June 1, 2024

The provider specified to photo view will be passed to an Image widget (see the code).

If you have an image URL, you could use photo view as follows:

new PhotoView(
  imageProvider: new NetworkImage(imageAddress),
);

I think that will avoid this weird behavior.

from photo_view.

SocratesDz avatar SocratesDz commented on June 1, 2024

In my use case, I need to use a MemoryProvider, because I'm using a share intent to send the image, and it needs to be in bytes in order to encode them to base64, so I can send it. If I use NetworkImage, I think I'll have to download the image again to retrieve the bytes in order to use the share intent. So I'd have to download the same image twice.

See how they use gaplessPlayback in the Image widget here. Maybe this can help.

from photo_view.

SocratesDz avatar SocratesDz commented on June 1, 2024

I guess, also allowing to pass gaplessPlayback as parameter and using it in the Image constructor might work.

from photo_view.

renancaraujo avatar renancaraujo commented on June 1, 2024

Just added your solution to 0.0.5

from photo_view.

SocratesDz avatar SocratesDz commented on June 1, 2024

Great, I'm glad to help πŸ˜ƒ

from photo_view.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.