{"id":20698867,"url":"https://github.com/rwson/adapt","last_synced_at":"2025-06-27T22:04:13.354Z","repository":{"id":87105154,"uuid":"167484104","full_name":"rwson/adapt","owner":"rwson","description":"flutter 屏幕适配","archived":false,"fork":false,"pushed_at":"2019-01-29T10:38:29.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T03:41:58.636Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rwson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2019-01-25T04:19:54.000Z","updated_at":"2019-01-29T10:38:30.000Z","dependencies_parsed_at":"2023-07-04T22:30:29.817Z","dependency_job_id":null,"html_url":"https://github.com/rwson/adapt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rwson/adapt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwson%2Fadapt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwson%2Fadapt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwson%2Fadapt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwson%2Fadapt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rwson","download_url":"https://codeload.github.com/rwson/adapt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwson%2Fadapt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262341514,"owners_count":23296064,"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-17T00:27:11.665Z","updated_at":"2025-06-27T22:04:13.311Z","avatar_url":"https://github.com/rwson.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# adapt\n\nflutter屏幕适配插件\n\n## 使用\n\n```yaml\ndependencies:\n adapt:\n   git: git://github.com/rwson/adapt.git\n```\n\n## 导入\n\n```dart\nimport 'package/adapt/adapt.dart';\n```\n\n## api\n\n#### `static Adapt.init(double number)`\n\n初始化设计稿尺寸, 默认750\n\n#### `static Adapt.onePx()`\n\n用于边框设置\n\n#### `static Adapt.px(double number)`\n\n把设计稿上的像素转换为当前分辨率对应的真实像素，用于设置字号、容器大小等\n\n#### `static Adapt.screenW()`\n\n返回当前横向分辨率\n\n#### `static Adapt.screenH()`\n\n返回当前纵向分辨率","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frwson%2Fadapt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frwson%2Fadapt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frwson%2Fadapt/lists"}