{"id":18868409,"url":"https://github.com/best-flutter/linker","last_synced_at":"2025-04-14T14:31:52.283Z","repository":{"id":56833988,"uuid":"147655309","full_name":"best-flutter/linker","owner":"best-flutter","description":"A plugin for flutter to link with other app.","archived":false,"fork":false,"pushed_at":"2019-11-06T23:57:45.000Z","size":149,"stargazers_count":21,"open_issues_count":5,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T03:51:13.293Z","etag":null,"topics":["flutter","flutter-plugin"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/best-flutter.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-09-06T10:09:06.000Z","updated_at":"2022-05-02T14:48:29.000Z","dependencies_parsed_at":"2022-09-09T14:02:31.677Z","dependency_job_id":null,"html_url":"https://github.com/best-flutter/linker","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/best-flutter%2Flinker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/best-flutter%2Flinker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/best-flutter%2Flinker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/best-flutter%2Flinker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/best-flutter","download_url":"https://codeload.github.com/best-flutter/linker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248897224,"owners_count":21179560,"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","flutter-plugin"],"created_at":"2024-11-08T05:13:34.358Z","updated_at":"2025-04-14T14:31:51.489Z","avatar_url":"https://github.com/best-flutter.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n\n# linker\n\nA flutter plugin to link with other app or system function.\n\n## Getting Started\n\nadd \n\n```\n\nlinker: 0.0.2\n\n```\nto your pubspec.yaml, and run `flutter packages get`\n\n\n## Usage\n\n### Android\n\n\nUse action\n\n```\ntry {\n  ActivityResult result = await Linker.startActivityForResult(\n      new Intent.fromAction(\"android.settings.SETTINGS\"), 0);\n  print(result);\n} on PlatformException catch (e) {\n  print(\"Open failed $e\");\n}\n\n```\n\nOpen google map\n\n```\ntry {\n  await Linker.startActivity(new Intent.fromAction(\n    \"android.intent.action.VIEW\",\n    uri: Uri.parse(\n        \"http://ditu.google.cn/maps?hl=zh\u0026mrt=loc\u0026q=31.1198723,121.1099877(上海青浦大街100号)\"),\n  ));\n} on PlatformException catch (e) {\n  print(\"Open failed $e\");\n}\n\n```\n\n\nOpen QQ\n\n```\n try {\n      await Linker.startActivity(new Intent.fromAction(Intent.ACTION_VIEW,\n          uri: Uri.parse(\"mqqwpa://im/chat?chat_type=wpa\u0026uin=123456\")));\n    } on PlatformException catch (e) {\n      print(\"Open failed $e\");\n    }\n```\n\n\n\nOpen Wechat\n```\ntry {\n  await Linker.startActivity(new Intent.callApp( packageName:  \"com.tencent.mm\",className: \"com.tencent.mm.ui.LauncherUI\"));\n} on PlatformException catch (e) {\n  print(\"Open failed $e\");\n}\n```\n\n### ios\n\n\nOpen wechat\n\n```\n try {\n await Linker.openURL(\"weixin://\");\n} on PlatformException catch (e) {\n  print(\"Open failed $e\");\n}\n```\n\n\nOpen Settings\n```\ntry {\n  await Linker.openURL(\"App-Prefs:root\");\n} on PlatformException catch (e) {\n  print(\"Open failed $e\");\n}\n\n```\n\nCall 10086\n\n```\n try {\n  await Linker.openURL(\"tel:10086\");\n} on PlatformException catch (e) {\n  print(\"Open failed $e\");\n}\n```\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbest-flutter%2Flinker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbest-flutter%2Flinker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbest-flutter%2Flinker/lists"}