https://github.com/vicajilau/location_service
A lightweight Flutter package that allows very simple and optimized way to obtain details about the platform on which it is running.
https://github.com/vicajilau/location_service
dart flutter platform-detection
Last synced: 3 months ago
JSON representation
A lightweight Flutter package that allows very simple and optimized way to obtain details about the platform on which it is running.
- Host: GitHub
- URL: https://github.com/vicajilau/location_service
- Owner: vicajilau
- License: other
- Created: 2022-06-01T18:21:25.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-06-01T18:21:32.000Z (about 3 years ago)
- Last Synced: 2025-01-15T10:58:06.558Z (5 months ago)
- Topics: dart, flutter, platform-detection
- Language: Dart
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
This lightweight package allows in a very simple and optimized way to obtain details about the platform on which it is running. It's multi-platform, and supports mobile, desktop,
and the browser.## Using
[LocationService][] is a module that wraps the Flutter http package to integrate it into other projects.
This returns an encapsulated object for the location called [LocationModel][].
```dart
import 'package:location_service/location_service.dart';LocationService location = LocationService();
LocationModel userLocation = await location.localizeUserPosition();
```[LocationService]: https://github.com/vicajilau/location_service/blob/master/lib/src/location_service.dart
[LocationModel]: https://github.com/vicajilau/location_service/blob/master/lib/src/model/location_model.dart