{"id":19167616,"url":"https://github.com/leanflutter/uni_platform","last_synced_at":"2025-10-19T17:54:12.634Z","repository":{"id":218077146,"uuid":"745054948","full_name":"leanflutter/uni_platform","owner":"leanflutter","description":"Replaces the Platform class and works on any platform.","archived":false,"fork":false,"pushed_at":"2024-03-02T03:14:10.000Z","size":258,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-03T23:12:16.527Z","etag":null,"topics":[],"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/leanflutter.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"liberapay":"lijy91"}},"created_at":"2024-01-18T14:56:41.000Z","updated_at":"2024-12-03T12:29:55.000Z","dependencies_parsed_at":"2024-11-09T09:38:45.618Z","dependency_job_id":"e0ba5f29-ec06-4ff8-96fd-5b5aece7ab42","html_url":"https://github.com/leanflutter/uni_platform","commit_stats":null,"previous_names":["leanflutter/uni_platform"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanflutter%2Funi_platform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanflutter%2Funi_platform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanflutter%2Funi_platform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leanflutter%2Funi_platform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leanflutter","download_url":"https://codeload.github.com/leanflutter/uni_platform/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240247628,"owners_count":19771346,"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":[],"created_at":"2024-11-09T09:38:35.393Z","updated_at":"2025-10-19T17:54:12.518Z","avatar_url":"https://github.com/leanflutter.png","language":"Dart","funding_links":["https://liberapay.com/lijy91"],"categories":[],"sub_categories":[],"readme":"# uni_platform\n\n[![pub version][pub-image]][pub-url] [![][discord-image]][discord-url]\n\n[pub-image]: https://img.shields.io/pub/v/uni_platform.svg\n[pub-url]: https://pub.dev/packages/uni_platform\n[discord-image]: https://img.shields.io/discord/884679008049037342.svg\n[discord-url]: https://discord.gg/zPa6EZ2jqb\n\nSubstitutes the Platform class, ensuring works across all platforms.\n\n---\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n- [Quick Start](#quick-start)\n  - [Installation](#installation)\n  - [Usage](#usage)\n- [License](#license)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n## Quick Start\n\n### Installation\n\nAdd this to your package's pubspec.yaml file:\n\n```yaml\ndependencies:\n  uni_platform: ^0.1.1\n```\n\n### Usage\n\nselect method:\n\n```dart\nimport 'package:uni_platform/uni_platform.dart';\n\nString platformType = UniPlatform.select\u003cString\u003e(\n  android: 'Android',\n  fuchsia: 'Fuchsia',\n  ios: 'iOS',\n  linux: 'Linux',\n  macos: 'macOS',\n  windows: 'Windows',\n  web: 'Web',\n  otherwise: 'Unknown',\n);\n```\n\ncall method:\n\n```dart\nString platformType = UniPlatform.call\u003cString\u003e(\n  android: () =\u003e 'Android',\n  fuchsia: () =\u003e 'Fuchsia',\n  ios: () =\u003e 'iOS',\n  linux: () =\u003e 'Linux',\n  macos: () =\u003e 'macOS',\n  windows: () =\u003e 'Windows',\n  web: () =\u003e 'Web',\n  otherwise: () =\u003e 'Unknown',\n);\n```\n\n\u003e Please see the example app of this plugin for a full example.\n\n## License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleanflutter%2Funi_platform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleanflutter%2Funi_platform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleanflutter%2Funi_platform/lists"}