PhotoView.customChild constructor
const
PhotoView.customChild({
- Key? key,
- ValueNotifier? data,
- required Widget? child,
- PageController? pageController,
- Size? childSize,
- BoxDecoration? backgroundDecoration,
- PhotoViewHeroAttributes? heroAttributes,
- ValueChanged<
PhotoViewScaleState> ? scaleStateChangedCallback, - bool enableRotation = false,
- PhotoViewControllerBase<
PhotoViewControllerValue> ? controller, - PhotoViewScaleStateController? scaleStateController,
- dynamic maxScale,
- dynamic minScale,
- dynamic initialScale,
- Alignment? basePosition,
- ScaleStateCycle? scaleStateCycle,
- PhotoViewImageTapUpCallback? onTapUp,
- PhotoViewImageTapDownCallback? onTapDown,
- PhotoViewImageScaleEndCallback? onScaleEnd,
- Size? customSize,
- HitTestBehavior? gestureDetectorBehavior,
- bool? tightMode,
- FilterQuality? filterQuality,
- bool? disableGestures,
- bool? enablePanAlways,
- bool enableScaleAndDoubleTap = true,
Creates a widget that displays a zoomable child.
It has been created to resemble PhotoView behavior within widgets that aren't an image, such as Container, Text or a svg.
Instead of a imageProvider, this constructor will receive a child
and a childSize
.
Implementation
const PhotoView.customChild({
Key? key,
this.data,
required this.child,
this.pageController,
this.childSize,
this.backgroundDecoration,
this.heroAttributes,
this.scaleStateChangedCallback,
this.enableRotation = false,
this.controller,
this.scaleStateController,
this.maxScale,
this.minScale,
this.initialScale,
this.basePosition,
this.scaleStateCycle,
this.onTapUp,
this.onTapDown,
this.onScaleEnd,
this.customSize,
this.gestureDetectorBehavior,
this.tightMode,
this.filterQuality,
this.disableGestures,
this.enablePanAlways,
this.enableScaleAndDoubleTap = true
}) : errorBuilder = null,
imageProvider = null,
gaplessPlayback = false,
loadingBuilder = null,
super(key: key);