onShootingButtonMove method
Update the scale value while the user is shooting. 用户在录制时通过滑动更新缩放
Implementation
void onShootingButtonMove(
PointerMoveEvent event,
BoxConstraints constraints,
) {
_lastShootingButtonPressedPosition ??= event.position;
if (controller.value.isRecordingVideo) {
final _offset = event.position - _lastShootingButtonPressedPosition!;
final _scale = _offset.dy / constraints.maxHeight * -14 + 1;
zoom(_scale);
}
}