{"id":19580229,"url":"https://github.com/xclud/window_location_href","last_synced_at":"2025-02-26T12:14:40.063Z","repository":{"id":49187626,"uuid":"229539507","full_name":"xclud/window_location_href","owner":"xclud","description":"window.location.href, similar to js, for flutter (all platforms)","archived":false,"fork":false,"pushed_at":"2022-10-24T20:06:12.000Z","size":104,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-09T05:17:19.944Z","etag":null,"topics":["flutter","href","web"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/window_location_href","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/xclud.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-12-22T08:33:07.000Z","updated_at":"2023-10-26T09:20:20.000Z","dependencies_parsed_at":"2022-09-06T03:32:25.289Z","dependency_job_id":null,"html_url":"https://github.com/xclud/window_location_href","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/xclud%2Fwindow_location_href","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xclud%2Fwindow_location_href/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xclud%2Fwindow_location_href/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xclud%2Fwindow_location_href/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xclud","download_url":"https://codeload.github.com/xclud/window_location_href/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240849053,"owners_count":19867617,"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","href","web"],"created_at":"2024-11-11T07:24:23.886Z","updated_at":"2025-02-26T12:14:39.999Z","avatar_url":"https://github.com/xclud.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![pub package](https://img.shields.io/pub/v/window_location_href.svg)](https://pub.dartlang.org/packages/window_location_href)\n\nA cross-platfrom implementation of `window.location.href` \u0026 `window.navigator.userAgent`.\n\n## Supported platforms\n\n* Flutter Android\n* Flutter iOS\n* Flutter Web\n* Flutter Desktop\n\n## Getting Started\n\nIn your `pubspec.yaml` file add:\n\n``` dart\ndependencies:\n  window_location_href: any\n```\n\nThen, in your code:\n\n``` dart\nimport 'window_location_href/window_location_href.dart';\n\nfinal location = href;\n```\n\nAbove code returns current page url on web (`window.location.href`), and `null` on other platforms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxclud%2Fwindow_location_href","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxclud%2Fwindow_location_href","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxclud%2Fwindow_location_href/lists"}