smart_location_plus 0.2.0
smart_location_plus: ^0.2.0 copied to clipboard
A unified Flutter location package combining geolocator, geocoding, and native geofencing into one simple, powerful API. Battery-efficient, platform-native geofencing. Zero boilerplate, full customization.
0.2.0 #
- BREAKING: Replaced pure-Dart polling geofencing engine with platform-native geofencing via
native_geofence- Uses
CLLocationManageron iOS andGeofencingClienton Android - Significantly lower battery drain compared to Dart-side location polling
- Geofences persist across app restarts and device reboots
- Works reliably in background and terminated states
- Uses
- Added
native_geofence: ^1.2.1as a dependency - Android: requires
minSdkVersion 23and newBroadcastReceiverentries inAndroidManifest.xml - iOS: requires
NSLocationAlwaysAndWhenInUseUsageDescriptioninInfo.plist - Public API (
watchZone(),addZone(),stopWatchingZone(),stopWatchingZones()) remains unchanged - Updated README with native geofencing setup instructions
0.1.0 #
- Initial release
locateOnce()— get location + address in one calllocateAndWatch()— live location streamgetLastKnownLocation()— cached positionreverseGeocode()— coordinates to addressforwardGeocode()— address to coordinateswatchZone()— geofencing with enter/exit/dwell eventsaddZone()/stopWatchingZone()— dynamic zone managementdistanceBetween(),bearingBetween(),isInsideZone()— utilities- Full permission handling built-in
- All underlying package options exposed via config objects