const
Widget.interactiveViewer(- {Key? key,
- @Default(Clip.hardEdge) Clip clipBehavior,
- @Default(PanAxis.free) PanAxis panAxis,
- @Default(EdgeInsets.zero) EdgeInsets boundaryMargin,
- @Default(true) bool constrained,
- @Default(2.5) double maxScale,
- @Default(0.8) double minScale,
- @Default(0.0000135) double interactionEndFrictionCoefficient,
- @Default(true) bool panEnabled,
- @Default(true) bool scaleEnabled,
- @Default(200.0) double scaleFactor,
- Alignment? alignment,
- required Widget child}
)
Implementation
const factory Widget.interactiveViewer({
Key? key,
@Default(Clip.hardEdge) Clip clipBehavior,
@Default(PanAxis.free) PanAxis panAxis,
@Default(EdgeInsets.zero) EdgeInsets boundaryMargin,
@Default(true) bool constrained,
@Default(2.5) double maxScale,
@Default(0.8) double minScale,
@Default(0.0000135) double interactionEndFrictionCoefficient,
@Default(true) bool panEnabled,
@Default(true) bool scaleEnabled,
@Default(200.0) double scaleFactor,
Alignment? alignment,
required Widget child,
}) = InteractiveViewer;