GestureZoomBox constructor
const
GestureZoomBox({})
通过最大缩放比例 maxScale、双击缩放比例 doubleTapScale、子部件 child、点击事件 onPressed 创建小部件
Implementation
const GestureZoomBox({
Key? key,
this.maxScale = 5.0,
this.doubleTapScale = 2.0,
required this.child,
this.onPressed,
required this.up,
this.duration = const Duration(milliseconds: 200),
}) : assert(maxScale >= 1.0),
assert(doubleTapScale >= 1.0 && doubleTapScale <= maxScale),
super(key: key);