{"id":16434260,"url":"https://github.com/wangweianger/adapt_flutter","last_synced_at":"2026-04-15T21:31:26.009Z","repository":{"id":143796945,"uuid":"162382861","full_name":"wangweianger/adapt_flutter","owner":"wangweianger","description":"A flutter plugin for adapting screen.Adapt IOS and Android.","archived":false,"fork":false,"pushed_at":"2018-12-19T06:12:44.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-25T19:28:02.944Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wangweianger.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-19T04:28:56.000Z","updated_at":"2018-12-19T06:12:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"37a8695f-2c68-4903-be5c-e22f6ea5800f","html_url":"https://github.com/wangweianger/adapt_flutter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wangweianger/adapt_flutter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangweianger%2Fadapt_flutter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangweianger%2Fadapt_flutter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangweianger%2Fadapt_flutter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangweianger%2Fadapt_flutter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wangweianger","download_url":"https://codeload.github.com/wangweianger/adapt_flutter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangweianger%2Fadapt_flutter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31861283,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-10-11T08:48:39.149Z","updated_at":"2026-04-15T21:31:25.992Z","avatar_url":"https://github.com/wangweianger.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"## adapt\n\n**A flutter plugin for adapting screen.Adapt IOS and Android.**\n\n## APIS\n\u003e Adapt.init(int 750) Initialize the setup size\n\u003e Adapt.px(int 30)    Calculated dimensions\n\u003e Adapt.onepx()       get 1px\n\u003e Adapt.screenW()     get the devices width\n\u003e Adapt.screenH()     get the devices height\n\u003e Adapt.padTopH()     get the devices padding top\n\u003e Adapt.padBotH()     get the devices padding bottom\n\n## Usage:\n\n### Add dependency：\n```js\n\ndependencies:\n  flutter:\n    sdk: flutter\n  \n  adapt: ^0.0.1  // select the last version\n\n```\n\n### Add the following imports to your Dart code:\n\n```js\nimport 'package:adapt/adapt.dart';\n\n```\n\n## Use：\n\n### If your design is 750px.\n\n```js\n\n// Set text size.\nnew Text(\n    'Hello World!',\n    style: TextStyle(\n         fontSize: Adapt.px(30),\n     )\n)\n\n// Set container size.\nnew Container(width: Adapt.px(300),  \n    height: Adapt.px(300),\n)\n\n// get 1px\nnew Container(\n    decoration: new BoxDecoration(\n          border: new Border(bottom:BorderSide(width: Adapt.one())),\n    ),\n)\n\n```\n\n### If your design is not 750px.\n\n* Initialize the setup size.\n\n```js\n\n// For example, the design is 1000px. You can do it like this.\n\nAdapt.init(1000);\n\n// and then use px\nnew Text(\n    'Hello World!',\n    style: TextStyle(\n        fontSize: Adapt.px(30),\n    )\n)\n\n```\n\n\n\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangweianger%2Fadapt_flutter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangweianger%2Fadapt_flutter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangweianger%2Fadapt_flutter/lists"}