wrapGestureWidget method
Widget
wrapGestureWidget(
- Widget child, {
- double? imageWidth,
- double? imageHeight,
- BoxFit? imageFit,
- Rect? rect,
- bool copy = false,
inherited
Implementation
Widget wrapGestureWidget(
Widget child, {
double? imageWidth,
double? imageHeight,
BoxFit? imageFit,
Rect? rect,
bool copy = false,
}) {
child = CustomSingleChildLayout(
delegate: GestureWidgetDelegateFromState(
this,
imageWidth: imageWidth,
imageHeight: imageHeight,
imageFit: imageFit,
rect: rect,
copy: copy,
),
child: child,
);
if (extendedImageSlidePageState != null) {
child = widget.extendedImageState.imageWidget.heroBuilderForSlidingPage
?.call(child) ??
child;
if (extendedImageSlidePageState!.widget.slideType ==
SlideType.onlyImage) {
child = Transform.translate(
offset: extendedImageSlidePageState!.offset,
child: Transform.scale(
scale: extendedImageSlidePageState!.scale,
child: child,
),
);
}
}
return child;
}