Revert "Fix the pull down interaction within Image view (#1563)"
This reverts commit0e26e15cb1
, reversing changes made tocd320d30dd
.
This commit is contained in:
parent
ea723f1183
commit
28d0e5fee7
|
@ -104,19 +104,21 @@ class _ZoomableImageState extends State<ZoomableImage>
|
||||||
} else {
|
} else {
|
||||||
content = const EnteLoadingWidget();
|
content = const EnteLoadingWidget();
|
||||||
}
|
}
|
||||||
verticalDragCallback(d) => {
|
final GestureDragUpdateCallback? verticalDragCallback = _isZooming
|
||||||
if (!_isZooming)
|
? null
|
||||||
{
|
: (d) => {
|
||||||
if (d.delta.dy > dragSensitivity)
|
if (!_isZooming)
|
||||||
{
|
{
|
||||||
{Navigator.of(context).pop()},
|
if (d.delta.dy > dragSensitivity)
|
||||||
}
|
{
|
||||||
else if (d.delta.dy < (dragSensitivity * -1))
|
{Navigator.of(context).pop()},
|
||||||
{
|
}
|
||||||
showDetailsSheet(context, widget.photo),
|
else if (d.delta.dy < (dragSensitivity * -1))
|
||||||
|
{
|
||||||
|
showDetailsSheet(context, widget.photo),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
};
|
||||||
};
|
|
||||||
|
|
||||||
return GestureDetector(
|
return GestureDetector(
|
||||||
onVerticalDragUpdate: verticalDragCallback,
|
onVerticalDragUpdate: verticalDragCallback,
|
||||||
|
|
|
@ -13,7 +13,6 @@ description: ente photos application
|
||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
|
|
||||||
version: 0.8.59+579
|
version: 0.8.59+579
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=3.0.0 <4.0.0"
|
sdk: ">=3.0.0 <4.0.0"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue