mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-21 11:22:16 +08:00
@@ -87,11 +87,7 @@ class _InteractiveviewerGalleryState extends State<InteractiveviewerGallery>
|
||||
late final _tween = Matrix4Tween();
|
||||
late final _animatable = _tween.chain(CurveTween(curve: Curves.easeOut));
|
||||
|
||||
late final _horizontalDragGestureRecognizer =
|
||||
ImageHorizontalDragGestureRecognizer(
|
||||
width: 0,
|
||||
transformationController: _transformationController,
|
||||
);
|
||||
late final _horizontalDragGestureRecognizer;
|
||||
|
||||
late Offset _doubleTapLocalPosition;
|
||||
|
||||
@@ -111,6 +107,11 @@ class _InteractiveviewerGalleryState extends State<InteractiveviewerGallery>
|
||||
|
||||
_transformationController = TransformationController();
|
||||
|
||||
_horizontalDragGestureRecognizer = ImageHorizontalDragGestureRecognizer(
|
||||
width: 0,
|
||||
transformationController: _transformationController,
|
||||
);
|
||||
|
||||
_animationController = AnimationController(
|
||||
vsync: this,
|
||||
duration: const Duration(milliseconds: 300),
|
||||
@@ -246,7 +247,8 @@ class _InteractiveviewerGalleryState extends State<InteractiveviewerGallery>
|
||||
: _itemBuilder(index, item),
|
||||
);
|
||||
},
|
||||
horizontalDragGestureRecognizer: _horizontalDragGestureRecognizer,
|
||||
horizontalDragGestureRecognizer: () =>
|
||||
_horizontalDragGestureRecognizer,
|
||||
),
|
||||
),
|
||||
Positioned(
|
||||
|
||||
Reference in New Issue
Block a user