ArLocationWidget constructor

const ArLocationWidget({
  1. Key? key,
  2. required List<ArAnnotation> annotations,
  3. required AnnotationViewBuilder annotationViewBuilder,
  4. required ChangeLocationCallback onLocationChange,
  5. double annotationWidth = 200,
  6. double annotationHeight = 75,
  7. double maxVisibleDistance = 1500,
  8. Size? frame,
  9. bool showDebugInfoSensor = true,
  10. double paddingOverlap = 5,
  11. double? yOffsetOverlap,
  12. Widget? accessory,
  13. double minDistanceReload = 50,
  14. bool scaleWithDistance = true,
  15. double minScale = AnnotationLayoutConfig.defaultMinScale,
  16. Color? markerColor,
  17. Color? backgroundRadar,
  18. RadarPosition? radarPosition,
  19. bool showRadar = true,
  20. double? radarWidth,
  21. bool isLoading = false,
  22. Widget? loadingWidget,
  23. ArSensorSource? sensorSource,
  24. ArSensorErrorBuilder? sensorErrorBuilder,
  25. ValueChanged<ArSensorException>? onSensorError,
  26. double? cameraFieldOfView,
  27. bool useAltitude = false,
  28. bool hideWithinLocationAccuracy = false,
  29. Duration rowAnimationDuration = const Duration(milliseconds: 200),
  30. int? maxRows,
  31. AnnotationGroupBadgeBuilder? groupBadgeBuilder,
  32. ArCameraErrorBuilder? cameraErrorBuilder,
})

Implementation

const ArLocationWidget({
  super.key,
  required this.annotations,
  required this.annotationViewBuilder,
  required this.onLocationChange,
  this.annotationWidth = 200,
  this.annotationHeight = 75,
  this.maxVisibleDistance = 1500,
  this.frame,
  this.showDebugInfoSensor = true,
  this.paddingOverlap = 5,
  this.yOffsetOverlap,
  this.accessory,
  this.minDistanceReload = 50,
  this.scaleWithDistance = true,
  this.minScale = AnnotationLayoutConfig.defaultMinScale,
  this.markerColor,
  this.backgroundRadar,
  this.radarPosition,
  this.showRadar = true,
  this.radarWidth,
  this.isLoading = false,
  this.loadingWidget,
  this.sensorSource,
  this.sensorErrorBuilder,
  this.onSensorError,
  this.cameraFieldOfView,
  this.useAltitude = false,
  this.hideWithinLocationAccuracy = false,
  this.rowAnimationDuration = const Duration(milliseconds: 200),
  this.maxRows,
  this.groupBadgeBuilder,
  this.cameraErrorBuilder,
});