{"id":18469282,"url":"https://github.com/nealst/flutter_screen_adaptor","last_synced_at":"2026-04-13T20:02:37.059Z","repository":{"id":56838608,"uuid":"165590615","full_name":"NealST/flutter_screen_adaptor","owner":"NealST","description":"flutter屏幕适配工具包","archived":false,"fork":false,"pushed_at":"2019-01-14T11:25:14.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T06:49:18.934Z","etag":null,"topics":["dart","flutter"],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NealST.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-01-14T03:39:33.000Z","updated_at":"2023-05-30T08:21:59.000Z","dependencies_parsed_at":"2022-08-28T23:04:10.901Z","dependency_job_id":null,"html_url":"https://github.com/NealST/flutter_screen_adaptor","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/NealST%2Fflutter_screen_adaptor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NealST%2Fflutter_screen_adaptor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NealST%2Fflutter_screen_adaptor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NealST%2Fflutter_screen_adaptor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NealST","download_url":"https://codeload.github.com/NealST/flutter_screen_adaptor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252831181,"owners_count":21810779,"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":["dart","flutter"],"created_at":"2024-11-06T10:09:39.200Z","updated_at":"2026-04-13T20:02:37.031Z","avatar_url":"https://github.com/NealST.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# screen_adaptor\n\nA flutter screen_adaptor tool.\n\n## Getting Started\n\nThis library is designed to solve the problem of flutter screen adaptor. The default UI sketch width is 750px, based on this width, you can use this tool as follows: \n\n```\n// import\nimport 'package:screen_adaptor/screen_adaptor.dart'\n\n// used in ui code\n// 100 is the ui sketch size\nContainer(\n  width: Fpx.to(100)\n)\n\n// 1px problem\nContainer(\n  decoration: BoxDecoration(border: Border.all(color: Colors.blue, width: Fpx.one()))\n)\n\n// get screen width\nFpx.vw()\n\n// get screen height\nFpx.vh()\n\n```\nif your ui sketch width is not 750px, such as 375px. you need set the ui width first through\n\n```\nFpx.init(375)\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnealst%2Fflutter_screen_adaptor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnealst%2Fflutter_screen_adaptor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnealst%2Fflutter_screen_adaptor/lists"}