{"id":23437730,"url":"https://github.com/fluttify-project/amap_location_fluttify","last_synced_at":"2025-04-13T06:10:32.387Z","repository":{"id":56825879,"uuid":"213563560","full_name":"fluttify-project/amap_location_fluttify","owner":"fluttify-project","description":"高德地图 定位组件 Flutter插件","archived":false,"fork":false,"pushed_at":"2020-10-15T12:48:06.000Z","size":59643,"stargazers_count":105,"open_issues_count":2,"forks_count":41,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T22:45:36.238Z","etag":null,"topics":["android","flutter","flutter-plugin","fluttify","ios"],"latest_commit_sha":null,"homepage":"","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/fluttify-project.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":"2019-10-08T06:20:23.000Z","updated_at":"2024-09-07T13:46:27.000Z","dependencies_parsed_at":"2022-09-20T18:19:46.379Z","dependency_job_id":null,"html_url":"https://github.com/fluttify-project/amap_location_fluttify","commit_stats":null,"previous_names":[],"tags_count":49,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttify-project%2Famap_location_fluttify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttify-project%2Famap_location_fluttify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttify-project%2Famap_location_fluttify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttify-project%2Famap_location_fluttify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluttify-project","download_url":"https://codeload.github.com/fluttify-project/amap_location_fluttify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248670434,"owners_count":21142904,"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":["android","flutter","flutter-plugin","fluttify","ios"],"created_at":"2024-12-23T14:35:28.919Z","updated_at":"2025-04-13T06:10:32.360Z","avatar_url":"https://github.com/fluttify-project.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Logo](https://github.com/fluttify-project/fluttify-core-example/blob/develop/other/Logo-Landscape.png?raw=true)\n\n# 高德 `定位`组件\n\n[![pub package](https://img.shields.io/pub/v/amap_location_fluttify.svg)](https://pub.Flutter-io.cn/packages/amap_location_fluttify)\n\nDart接口基于[fluttify](https://github.com/yohom/fluttify-core-example)引擎生成. dartdoc[接口文档](https://pub.flutter-io.cn/documentation/amap_location_fluttify/latest/).\n\n## DEMO 与 社区\n\n| Demo | QQ群 |\n| :----------: | :----------: |\n| 扫描二维码 \u003cbr\u003e 或者 \u003cbr\u003e [点击下载](https://github.com/fluttify-project/amap_location_fluttify/blob/master/example/build/app/outputs/apk/release/app-release.apk?raw=true) \u003c/br\u003e \u003cimg src=\"assets/amap_map_fluttify_apk.png\" height=\"300\"\u003e | 加入QQ群讨论 \u003cbr/\u003e \u003cimg src=\"https://github.com/fluttify-project/fluttify-core-example/blob/develop/other/QQ%E7%BE%A4.png?raw=true\" height=\"300\"\u003e |\n\n安装: \n```yaml\ndependencies:\n  flutter:\n    sdk: flutter\n  amap_location_fluttify: ^x.x.x\n```\n\n导入:\n```dart\nimport 'package:amap_location_fluttify/amap_location_fluttify.dart';\n```\n\n使用:\n```dart \n/// !注意: 只要是返回Future的方法, 一律使用`await`修饰, 确保当前方法执行完成后再执行下一行, 在不能使用`await`修饰的环境下, 在`then`方法中执行下一步.\n/// 初始化 iOS在init方法中设置, android需要去AndroidManifest.xml里去设置, 详见 https://lbs.amap.com/api/android-sdk/gettingstarted\nawait AmapCore.init('ios key');\n\n// 单次定位\nif (await requestPermission()) {\n  final location = await AmapLocation.fetchLocation();\n  setState(() =\u003e _location = location);\n}\n\n// 连续定位\nif (await requestPermission()) {\n  AmapLocation.listenLocation()\n    .listen((location) =\u003e setState(() =\u003e _location = location));\n}\n```\n\n## LICENSE\n\u003e Copyright 2020 yohom\n\u003e   \n\u003e Licensed under the Apache License, Version 2.0 (the \"License\");\n  you may not use this file except in compliance with the License.\n  You may obtain a copy of the License at\n\u003e\n\u003e    http://www.apache.org/licenses/LICENSE-2.0\n\u003e \n\u003e  Unless required by applicable law or agreed to in writing, software\n\u003e  distributed under the License is distributed on an \"AS IS\" BASIS,\n\u003e  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\u003e  See the License for the specific language governing permissions and\n\u003e  limitations under the License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluttify-project%2Famap_location_fluttify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluttify-project%2Famap_location_fluttify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluttify-project%2Famap_location_fluttify/lists"}