{"id":17362094,"url":"https://github.com/ipcjs/safe_area_insets","last_synced_at":"2025-08-15T17:06:14.110Z","repository":{"id":64448233,"uuid":"575910907","full_name":"ipcjs/safe_area_insets","owner":"ipcjs","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-01T03:18:06.000Z","size":205,"stargazers_count":5,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-11T21:37:46.559Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ipcjs.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,"zenodo":null}},"created_at":"2022-12-08T15:20:21.000Z","updated_at":"2024-05-08T07:47:10.000Z","dependencies_parsed_at":"2025-07-11T21:45:08.190Z","dependency_job_id":null,"html_url":"https://github.com/ipcjs/safe_area_insets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ipcjs/safe_area_insets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipcjs%2Fsafe_area_insets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipcjs%2Fsafe_area_insets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipcjs%2Fsafe_area_insets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipcjs%2Fsafe_area_insets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ipcjs","download_url":"https://codeload.github.com/ipcjs/safe_area_insets/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipcjs%2Fsafe_area_insets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270602453,"owners_count":24614260,"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","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-15T19:37:00.522Z","updated_at":"2025-08-15T17:06:14.087Z","avatar_url":"https://github.com/ipcjs.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# safe_area_insets\n\nUse Dart to get the `safe-area-insets` on Web platform.\n\n## Usage\n\nIt is recommended to add this line in [index.html](example/web/index.html) to prevent flickering during loading.\n\n```html\n  \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover\"\u003e\n```\n\nUse `WebSafeAreaInsets` to handle safe area, See [example](example/lib/main.dart) for more detail.\n\n```dart\n  Widget build(BuildContext context) {\n    return MaterialApp(\n      home: const HomePage(),\n      builder: (context, child) {\n        child ??= const SizedBox();\n        return kIsWeb ? WebSafeAreaInsets(child: child) : child;\n      },\n    );\n  }\n```\n\n![screenshot-example](doc/screenshot-example.png)\n\n## Related Reading\n\n- [[web][PWA] SafeArea Widget does not work on iOS Safari PWA · Issue #84833 · flutter/flutter](https://github.com/flutter/flutter/issues/84833#issuecomment-890540239)\n- [Designing Websites for iPhone X | WebKit](https://webkit.org/blog/7929/designing-websites-for-iphone-x/)\n- [zhetengbiji/safeAreaInsets: Use javascript to get the safe area insets.](https://github.com/zhetengbiji/safeAreaInsets)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipcjs%2Fsafe_area_insets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fipcjs%2Fsafe_area_insets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipcjs%2Fsafe_area_insets/lists"}