gestureDetector property
Widget
gestureDetector
Implementation
Widget get gestureDetector {
return GestureDetector(
onScaleStart: (details) {
_scale.onStart();
_offset.onStart(details.focalPoint);
},
onScaleUpdate: (details) {
_scale.onUpdate(details.scale, state);
final previousScale = _scale._previousScale;
_offset.onUpdate(details.focalPoint, state, previousScale);
},
onScaleEnd: (_) {
_offset.onEnd();
},
child: _floatingChild,
);
}