UArConfig.viewer constructor

const UArConfig.viewer({
  1. Color background = const Color(0xFFF2F2F2),
  2. bool transparentBackground = false,
  3. bool shadows = true,
  4. double shadowOpacity = 0.35,
  5. double exposure = 1,
  6. double environmentIntensity = 1,
  7. UArOrbit orbit = const UArOrbit(),
  8. int eventRate = 30,
})

A plain 3D model viewer: no camera, no permission, works everywhere.

Implementation

const UArConfig.viewer({
  this.background = const Color(0xFFF2F2F2),
  this.transparentBackground = false,
  this.shadows = true,
  this.shadowOpacity = 0.35,
  this.exposure = 1,
  this.environmentIntensity = 1,
  this.orbit = const UArOrbit(),
  this.eventRate = 30,
}) : mode = UArMode.viewer,
     camera = UArCameraFacing.back,
     planeDetection = UArPlaneDetection.none,
     planeStyle = UArPlaneStyle.hidden,
     planeColor = const Color(0x00000000),
     showFeaturePoints = false,
     showWorldOrigin = false,
     showAnchors = false,
     showSceneMesh = false,
     occlusion = false,
     peopleOcclusion = false,
     sceneReconstruction = UArSceneReconstruction.none,
     lightEstimation = UArLightEstimation.disabled,
     focusMode = UArFocusMode.auto,
     instantPlacement = false,
     reticle = false,
     reticleColor = const Color(0x00000000),
     coaching = false,
     coachingGoal = UArCoachingGoal.tracking,
     images = const <UArReferenceImage>[],
     maxTrackedImages = 0,
     objects = const <UArReferenceObject>[],
     geoMode = UArGeoMode.auto,
     cloudAnchors = false,
     semantics = false,
     showFaceMesh = false,
     faceMeshColor = const Color(0x00000000),
     collaboration = false,
     worldMap = null,
     worldAlignment = UArWorldAlignment.gravity,
     highFps = false;