ar_location_view
3.3.0, released 3 days ago by an unverified publisher
Location-based augmented reality labels overlaying the camera preview for points of interest.
What it does
Shows geolocated points of interest as labels over the camera preview, matched to the device's 3D orientation. Automatically stacks overlapping labels and handles smoothed compass and GPS filters.
AI-written summary of version 3.2.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- Building an AR experience centered around static geolocated points of interest
- Displaying directional labels over a live camera preview based on user location and compass heading
Skip it when
- Needing general interactive map rendering without camera overlays
- Apps that do not require device sensors or geolocation permissions
Strengths
- Automatic vertical stacking of overlapping labels with stable positioning
- Configurable smoothed compass and GPS attitude/location filters
- Includes built-in radar and customizable annotation views
Weaknesses
- Requires proper native permission configuration and specific iOS/Android setup
- Depends heavily on device hardware capabilities like compass, gyroscope, and GPS
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 5
Requires adding camera and location usage descriptions to iOS Info.plist and Podfile preprocessor definitions. Android SDK configuration might be needed depending on the permission_handler version.
ArLocationWidget(
annotations: pois,
annotationWidth: 180,
annotationHeight: 60,
annotationViewBuilder: (context, annotation) {
final poi = annotation as Poi;
return Card(
child: ListTile(
title: Text(poi.name),
subtitle: Text('${poi.distanceFromUser.round()} m'),
),
);
},
onLocationChange: (position) => loadPoisAround(position),
)Alternatives
Packages that do the same job and could replace ar_location_view.
- location_web
Web implementation of the location plugin for Flutter web.
74Compare - flutter_map_compass
A simple compass widget for flutter_map displaying rotation and resetting it when tapped.
81Compare - geoclue
Dart client for the GeoClue D-Bus geolocation service on Linux.
50Compare - carp_background_location
Background location tracking for Android and iOS using background_locator_2
50Compare
Works with
Packages commonly used together with ar_location_view: ones it builds on, ones built on it, and its own family.
- vector_mathar_location_view depends on itVector math library for 2D/3D/4D vectors, matrices, quaternions, and geometry.
- permission_handlerar_location_view depends on itCross-platform API to check and request permissions on iOS, Android, Web, and Windows.
- geolocatorar_location_view depends on itCross-platform plugin to access device GPS, location updates, and coordinate calculations.
- cameraar_location_view depends on itFlutter plugin to preview, capture photos/video and stream camera images.
- sensors_plusar_location_view depends on itFlutter plugin to access accelerometer, gyroscope, magnetometer, and barometer sensors.