Comments (5)
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.
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.
I guess, also allowing to pass gaplessPlayback
as parameter and using it in the Image
constructor might work.
from photo_view.
Just added your solution to 0.0.5
from photo_view.
Great, I'm glad to help π
from photo_view.
Related Issues (20)
- Can anyone tell any alternatives? This repo seems abandoned, has anyone forked and fixed issues, I tried to make my own photo viewer, but meh didn't get impressive results HOT 2
- [desktop application] Next/Previous image with keyboard HOT 2
- back button pops the current screen into many screens back
- slowly load a big net img HOT 1
- Add more values to PhotoViewComputedScale
- Doesn't it have property "isAntiAlias"? HOT 1
- [BUG] Cannot zoom on desktop
- [BUG] Zoom function error HOT 1
- [BUG] It only zooms into the center of the picture HOT 2
- [BUG] 537 is not published on pub dev HOT 2
- [BUG] the scaleStateCycle only works when the image is in minScale and also when tapped on the bottom corners of the screen
- [BUG] Swiping through gallery doesn't work sometimes HOT 5
- hello, when I use custom child,the image size can not be set
- Do you support displaying long images(ζ―ζθΆ ιΏεΎηε±η€Ίε)
- Example for getting pixel location on image, on onTap HOT 2
- [BUG] when play hero pop animation, image size will be resize to original size? HOT 2
- How to support longPress gesture on Gallery exmaple?
- Can you support the initial state of the picture for double click range scaling, double click again to shrink back to the initial state? HOT 1
- Get value of ComputedScale to be used in sliders
- Is it possible to overlap another image? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from photo_view.