-
-
Notifications
You must be signed in to change notification settings - Fork 497
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
Add support for placeholder image/widget #4
Comments
please take a look at https://github.com/fluttercandies/extended_image/blob/master/example/lib/custom_image_demo.dart show how to build placeholder /failed |
Looks good, But I would prefer a passing a widget for loading/failed state. |
Yes, Please provide the same. I cannot have place holder image for zoomable Extended image. |
@ManojMM026 you can return container for loading state |
@ManojMM026 or set enableLoadState=false |
@zmtzawqlp I am not able to open a new issue in this repo but this what I want next and it's critical. I would like to download an image with a specified size, In my case, I have very big images around 2450X1440 resolution. For Grid and list, I don't need a full size, I would like to load thumbnail of it lets say around 200X200. Please let me know how can I achieve it here. I tried doing scale, Nothing happened |
@ManojMM026 do you want crop image, i think you can have a look https://github.com/fluttercandies/extended_image/blob/master/example/lib/common/crop_image.dart |
@zmtzawqlp I tried with this approach as well, App stayed ok for little longer than it used to be. But it's crashing again. so I don't think cropping helped me here. Do you have any other solution in mind? to reproduce this take grid of 50-100 images and scroll it fast. On ios it gives me: |
@ManojMM026 1.compress image by yourself 2.provide smaller image . you can try to disable memory cache by settting enableMemoryCache false |
@zmtzawqlp 1.compress image by yourself: any code snippet for this? I will try enableMemoryCache Now.
Check my log for sample image :
Source rect is my cropped image part. But I think the original image is being used and cached. |
can we plug this in library? |
this is what i said, compress image by yourself, you can resize the image data |
@zmtzawqlp back to the place holder again. while zooming if I try to set loading state, zoom gesture won't work.
|
report an new issue, version |
Its better to have a placeholder while loading image or failed to load...
Placeholder can be an image itself or any widget.
The text was updated successfully, but these errors were encountered: