-
Notifications
You must be signed in to change notification settings - Fork 552
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
[Help] How can i use single tap to dismiss photo_view dialog #182
Comments
@davewang @AlexVegner @memo4mj @SocratesDz |
Have you tried to wrap it in a GestureDetector with an |
@renancaraujo I have tried but it's no use |
The constructor has an |
@renancaraujo I had tried this too.It is ambiguity when two fingers to zoom image may cause dismiss |
mark |
Manually add a close button, can be solved |
You can use with Hero() and single touch on photoview will dismiss view automatically. |
One touch example to close the PhotoView that needs to have PINCH/RESIZE support doesnt work if wrapped in a dialog and using PhotoView.customChild - when trying to pinch to resize a small custom ICON (i.e an IconData) - the dialog closes i.e :
|
I use photo view like this, i don't find a correct way to dismiss this photo view
showDialog(
context: context,
builder: (_) {
return PhotoView(
imageProvider: NetworkImage(
_imageURL,
headers: _httpHeaders),
);
});
The text was updated successfully, but these errors were encountered: