You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current picture background is transparent, so I need to set a background color for the picture, which needs to be achieved using PhotoViewGalleryPageOptions.customChild.
There are two problems:
Hi @evansherry!
You image doesn't zoom in on double tap because it has original width equal to the constrained box, so the PhotoViewControllerDelegate.nextScaleState goes from PhotoViewScaleState.initial to PhotoViewScaleState.covering (by the defaultScaleStateCycle) and checks the new scale, which equals the prev scale since it's originally covering because the childSize for Image equals constrained box. Then the delegate continues moving by the defaultScaleStateCycle and goes to originalSize which equals to the constrained box as well, after that it goes to PhotoViewScaleState.initial again and checks if it equals to the original state (which is PhotoViewScaleState.initial), and if it does, it just stops.
You have two options:
Set childSize with any rational value greater than screen size.
Don't use the screenWidth but resolve the original image size from you ImageProvider and asynchronously update the state with new resolved size for childSize property for your PhotoViewGalleryPageOptions.
The current picture background is transparent, so I need to set a background color for the picture, which needs to be achieved using
PhotoViewGalleryPageOptions.customChild
.There are two problems:
code segment
The text was updated successfully, but these errors were encountered: