{"id":20187241,"url":"https://github.com/touwolf/location_picker","last_synced_at":"2025-04-10T06:38:43.361Z","repository":{"id":56834177,"uuid":"128958142","full_name":"touwolf/location_picker","owner":"touwolf","description":"A location picker plugin for Flutter","archived":false,"fork":false,"pushed_at":"2018-04-20T08:42:50.000Z","size":681,"stargazers_count":7,"open_issues_count":7,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-24T07:41:12.341Z","etag":null,"topics":["flutter-plugin","geocoder","location","maps"],"latest_commit_sha":null,"homepage":"https://pub.dartlang.org/packages/location_picker","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/touwolf.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-10T15:46:48.000Z","updated_at":"2023-03-21T02:32:49.000Z","dependencies_parsed_at":"2022-09-10T06:13:07.416Z","dependency_job_id":null,"html_url":"https://github.com/touwolf/location_picker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/touwolf%2Flocation_picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/touwolf%2Flocation_picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/touwolf%2Flocation_picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/touwolf%2Flocation_picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/touwolf","download_url":"https://codeload.github.com/touwolf/location_picker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248172235,"owners_count":21059508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flutter-plugin","geocoder","location","maps"],"created_at":"2024-11-14T03:22:13.261Z","updated_at":"2025-04-10T06:38:43.330Z","avatar_url":"https://github.com/touwolf.png","language":"Java","readme":"# location_picker\n\nA location picker plugin for Flutter.\n \n## What it does\n\nAs the name implies, this is a component for getting a desired location from the user. \nIt handles location permissions requests, a native map view and it return a map with all the data.\nIt also uses reversed GeoCoding for info associated with the selected location.     \n\n\u003cimg src=\"https://raw.githubusercontent.com/touwolf/location_picker/master/android.jpg\" width=\"300\"\u003e    \u003cimg src=\"https://raw.githubusercontent.com/touwolf/location_picker/master/ios.jpeg\" width=\"300\"\u003e\n\n## Example\n\n ```dart\n        //NECESSARY\n        LocationPicker.initApiKey('YOUR API KEY');\n        \n        LocationPicker picker = new LocationPicker();\n        \n        try \n        {\n          result = await picker.showLocationPicker;\n        } \n          on PlatformException \n        {\n          //HANDLE ERROR\n        }\n        \n        setState(() {_locationPickerData = result.toString();});\n ```\n\n### Configuration\n\nThe constructor\n    \n    new LocationPicker();\n    \nTakes the following optional parameters for configuration:\n\n```dart\n      String titleText;\n      bool closeIfLocationDenied;\n      bool useGeoCoder;\n      double initialLat;\n      double initialLong;\n      bool enableMyLocation;\n    \n      //ANDROID ONLY\n      String androidAppBarColor;\n      String androidNavBarColor;\n      String androidStatusBarColor;\n      String androidSelectButtonColor;\n      String androidTitleAndBackButtonColor;\n    \n      //IOS ONLY\n      String iosBackButtonText;\n      String iosSelectButtonText;\n```\n## Response\n\nThe response is a Map\u003cdynamic,dynamic\u003e that contains the following fields that can be null:\n\n                                 [\"latitude\"] double\n                                 [\"longitude\"] double\n                                 [\"administrativeArea\"] String\n                                 [\"country\"] String\n                                 [\"locality\"] String\n                                 [\"subLocality\"] String\n                                 [\"postalCode\"] String\n                                 [\"thoroughfare\"] String\n                                 [\"line0\"] String\n                                 [\"line1\"] String\n\n## Importing \n\n1. Create a Flutter project with Swift support.\n\n2. Import the library\n\n## Installing\n\n1. Get your Google Maps Api Key.\n\n### Android\n\n1. Request permissions in your manifest\n\n    ```xml\n    \u003cuses-permission android:name=\"android.permission.INTERNET\"/\u003e\n    \u003cuses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/\u003e\n    ``` \n\n2. Add your Android API Key in your manifest inside the application tag\n\n    ```xml\n    \u003cmeta-data\n     android:name=\"com.google.android.geo.API_KEY\"\n     android:value=\"YOUR API KEY\"/\u003e\n    ```\n     \n3. Add the map Activity to your app's manifest\n\n    ```xml\n   \u003cactivity\n        android:name=\"com.jumpstart.locationpicker.LocationPickerActivity\"\n        android:screenOrientation=\"portrait\"\n        android:theme=\"@style/Base.Theme.AppCompat.Light.DarkActionBar\"\u003e\n    \u003c/activity\u003e\n    ```\n\n### IOS\n\n1. Request permissions in your project's info.plist\n\n    ```xml\n   \u003ckey\u003eNSLocationWhenInUseUsageDescription\u003c/key\u003e\n   \u003cstring\u003eYour message to the user\u003c/string\u003e\n  \t```\n\n\n\n## Getting Started\n\nFor help getting started with Flutter, view our online\n[documentation](https://flutter.io/).\n\nFor help on editing plugin code, view the [documentation](https://flutter.io/platform-plugins/#edit-code).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftouwolf%2Flocation_picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftouwolf%2Flocation_picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftouwolf%2Flocation_picker/lists"}