GameCameraControls constructor

const GameCameraControls({
  1. Key? key,
  2. required Camera camera,
  3. required Widget child,
  4. double zoomStep = 0.1,
  5. double scrollZoomFactor = 0.1,
  6. bool showZoomLevel = false,
  7. bool enablePan = true,
  8. bool enablePinch = true,
})

Controls for camera over child: buttons and scroll steps of 0.1, mouse-drag pan and pinch zoom on, the zoom readout off, unless told otherwise. Every zoom is clamped to the camera's minZoom..maxZoom.

Implementation

const GameCameraControls({
  super.key,
  required this.camera,
  required this.child,
  this.zoomStep = 0.1,
  this.scrollZoomFactor = 0.1,
  this.showZoomLevel = false,
  this.enablePan = true,
  this.enablePinch = true,
});