U3DViewer constructor

const U3DViewer({
  1. required UArSource source,
  2. UArSource? iosSource,
  3. String? title,
  4. UArController? controller,
  5. Color? background,
  6. bool transparent = false,
  7. bool autoRotate = true,
  8. double autoRotateSpeed = 14,
  9. Duration autoRotateDelay = const Duration(seconds: 3),
  10. bool enableRotate = true,
  11. bool enableZoom = true,
  12. bool enablePan = false,
  13. double minZoom = 0.5,
  14. double maxZoom = 3,
  15. double minPitch = -15,
  16. double maxPitch = 80,
  17. double initialYaw = 25,
  18. double initialPitch = 12,
  19. double fov = 32,
  20. double exposure = 1,
  21. double environmentIntensity = 1,
  22. bool shadows = true,
  23. double shadowOpacity = 0.35,
  24. UArAnimation? animation = const UArAnimation(),
  25. List<UArHotspot> hotspots = const <UArHotspot>[],
  26. bool showArButton = true,
  27. UArSurface arSurface = UArSurface.floor,
  28. Widget arButtonBuilder(
    1. BuildContext context,
    2. VoidCallback open
    )?,
  29. VoidCallback? onArPressed,
  30. void onLoaded(
    1. UArNodeInfo info
    )?,
  31. void onTap(
    1. UArNodeHit? hit
    )?,
  32. Widget? placeholder,
  33. Widget errorBuilder(
    1. BuildContext context,
    2. UArException error
    )?,
  34. UArLabels labels = const UArLabels(),
  35. UArStyle style = const UArStyle(),
  36. Key? key,
})

Implementation

const U3DViewer({
  required this.source,
  this.iosSource,
  this.title,
  this.controller,
  this.background,
  this.transparent = false,
  this.autoRotate = true,
  this.autoRotateSpeed = 14,
  this.autoRotateDelay = const Duration(seconds: 3),
  this.enableRotate = true,
  this.enableZoom = true,
  this.enablePan = false,
  this.minZoom = 0.5,
  this.maxZoom = 3,
  this.minPitch = -15,
  this.maxPitch = 80,
  this.initialYaw = 25,
  this.initialPitch = 12,
  this.fov = 32,
  this.exposure = 1,
  this.environmentIntensity = 1,
  this.shadows = true,
  this.shadowOpacity = 0.35,
  this.animation = const UArAnimation(),
  this.hotspots = const <UArHotspot>[],
  this.showArButton = true,
  this.arSurface = UArSurface.floor,
  this.arButtonBuilder,
  this.onArPressed,
  this.onLoaded,
  this.onTap,
  this.placeholder,
  this.errorBuilder,
  this.labels = const UArLabels(),
  this.style = const UArStyle(),
  super.key,
});