U3DViewer constructor
const
U3DViewer({
- required UArSource source,
- UArSource? iosSource,
- String? title,
- UArController? controller,
- Color? background,
- bool transparent = false,
- bool autoRotate = true,
- double autoRotateSpeed = 14,
- Duration autoRotateDelay = const Duration(seconds: 3),
- bool enableRotate = true,
- bool enableZoom = true,
- bool enablePan = false,
- double minZoom = 0.5,
- double maxZoom = 3,
- double minPitch = -15,
- double maxPitch = 80,
- double initialYaw = 25,
- double initialPitch = 12,
- double fov = 32,
- double exposure = 1,
- double environmentIntensity = 1,
- bool shadows = true,
- double shadowOpacity = 0.35,
- UArAnimation? animation = const UArAnimation(),
- List<
UArHotspot> hotspots = const <UArHotspot>[], - bool showArButton = true,
- UArSurface arSurface = UArSurface.floor,
- Widget arButtonBuilder(
- BuildContext context,
- VoidCallback open
- VoidCallback? onArPressed,
- void onLoaded(
- UArNodeInfo info
- void onTap(
- UArNodeHit? hit
- Widget? placeholder,
- Widget errorBuilder(
- BuildContext context,
- UArException error
- UArLabels labels = const UArLabels(),
- UArStyle style = const UArStyle(),
- 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,
});