get_my_location 2.1.1
get_my_location: ^2.1.1 copied to clipboard
A Flutter package to easily fetch and display device location with automatic permission handling. Perfect for apps needing quick GPS access with customizable UI states.
2.0.3 - 2025-05-14 #
Added #
-
Complete UI decoupling: Package no longer renders any built-in UI components
-
Three access patterns:
-
Callback-based (onLocationFetched, onError, onLoading)
-
InheritedWidget-style (LocationGetter.of(context))
-
Controller pattern (LocationGetterController)
-
2.0.2 - 2025-05-13 #
Added #
- Improved location fetching logic with additional checks for service and permissions.
- Added
onLocationFetchedcallback to handle location data on fetch.
Fixed #
- Resolved issue where location data wasn't displayed correctly in certain cases.
- Fixed minor UI issues in location display.
Changed #
- Refined error handling for better user feedback.
- Refined code to ensure compatibility with the latest Flutter versions.
2.0.1 #
- Fixed "No location data available" bug after permission grant
- Ensured
_currentPositionis properly updated y
2.0.0 #
- Added address reverse geocoding
- Introduced
LocationDatamodel - Configurable refresh button
- Added timestamp to location data
- Improved documentation
1.0.0 #
- Initial release with basic location fetching