{"id":13552174,"url":"https://github.com/aloisdeniel/flutter_device_preview","last_synced_at":"2026-10-18T20:28:48.069Z","repository":{"id":37406065,"uuid":"188779127","full_name":"aloisdeniel/flutter_device_preview","owner":"aloisdeniel","description":"Approximate how your app looks and performs on another device.","archived":false,"fork":false,"pushed_at":"2026-08-25T13:48:47.000Z","size":148233,"stargazers_count":2407,"open_issues_count":5,"forks_count":394,"subscribers_count":16,"default_branch":"master","last_synced_at":"2026-10-18T01:10:53.528Z","etag":null,"topics":["device","flutter","preview","tool"],"latest_commit_sha":null,"homepage":"https://aloisdeniel.github.io/flutter_device_preview/","language":"JavaScript","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/aloisdeniel.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,"zenodo":null}},"created_at":"2019-05-27T05:51:42.000Z","updated_at":"2026-10-16T23:43:33.000Z","dependencies_parsed_at":"2024-01-15T00:14:15.310Z","dependency_job_id":"aa0838cd-cc77-48ec-b601-a09184df657a","html_url":"https://github.com/aloisdeniel/flutter_device_preview","commit_stats":{"total_commits":182,"total_committers":31,"mean_commits":5.870967741935484,"dds":0.4285714285714286,"last_synced_commit":"9cd7405bee4eb9d52be3633cf0887206a298e6fc"},"previous_names":[],"tags_count":43,"template":false,"template_full_name":null,"purl":"pkg:github/aloisdeniel/flutter_device_preview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aloisdeniel%2Fflutter_device_preview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aloisdeniel%2Fflutter_device_preview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aloisdeniel%2Fflutter_device_preview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aloisdeniel%2Fflutter_device_preview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aloisdeniel","download_url":"https://codeload.github.com/aloisdeniel/flutter_device_preview/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aloisdeniel%2Fflutter_device_preview/sbom","scorecard":{"id":186254,"data":{"date":"2025-08-11","repo":{"name":"github.com/aloisdeniel/flutter_device_preview","commit":"70bd9436f75c18de797013cf43b5447d31518982"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5,"checks":[{"name":"Code-Review","score":5,"reason":"Found 10/18 approved changesets -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":10,"reason":"11 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 22 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T19:51:50.972Z","repository_id":37406065,"created_at":"2025-08-16T19:51:50.973Z","updated_at":"2025-08-16T19:51:50.973Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":344872684,"owners_count":38336446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-10-03T21:59:58.778Z","status":"online","status_checked_at":"2026-10-18T02:00:06.448Z","response_time":63,"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":["device","flutter","preview","tool"],"created_at":"2024-08-01T12:02:00.135Z","updated_at":"2026-10-18T20:28:48.063Z","avatar_url":"https://github.com/aloisdeniel.png","language":"JavaScript","funding_links":["https://www.buymeacoffee.com/aloisdeniel"],"categories":["Dart"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/aloisdeniel/flutter_device_preview/raw/master/logo.png\" alt=\"Device Preview for Flutter\" /\u003e\n\u003c/p\u003e\n\n\u003ch4 align=\"center\"\u003eSimulate any device — screen, safe areas, locale, accessibility — with full framework fidelity.\u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://pub.dartlang.org/packages/device_preview\"\u003e\u003cimg src=\"https://img.shields.io/pub/v/device_preview.svg\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.buymeacoffee.com/aloisdeniel\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/$-donate-ff69b4.svg?maxAge=2592000\u0026amp;style=flat\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\nYou build on one screen; your users arrive on hundreds. Device Preview switches your **running** app to another device — an old 320pt phone, a tablet in landscape, a notched display, a half-width desktop window — instantly, with no rebuild and no simulator.\n\nScreen size, pixel ratio, safe areas, orientation, folds, the software keyboard, locales, brightness, text scale, accessibility settings and target platform all change with it, and your app reads them through the same `MediaQuery` it always used. So the problems that normally surface in front of a customer — a clipped headline, a button under the home indicator, an overflow at 200% text — surface in front of you instead.\n\nControl it from **Flutter DevTools**, from **Dart**, or from your **tests**.\n\n## Quickstart\n\n```yaml\ndependencies:\n  device_preview: \u003clatest version\u003e\n```\n\n```dart\nvoid main() {\n  DevicePreview.enable();\n  runApp(const MyApp()); // runs as usual — now simulatable\n}\n```\n\nThat's the whole integration. Open DevTools, select the **device_preview** tab, and pick a device.\n\n`enable()` is safe to call unconditionally: simulation is active in debug and profile builds and completely off in release, so nothing ships to your users. Pass a value to decide yourself — `DevicePreview.enable(enabled: kDebugMode)` for debug only, `DevicePreview.enable(enabled: false)` to turn it off.\n\nProgrammatic control:\n\n```dart\nimport 'package:device_preview/presets.dart';\n\nfinal c = DevicePreview.controller;\nawait c.applyPreset(DevicePresets.iPhone16Pro);\nawait c.setOrientation(Orientation.landscape);\nawait c.update((s) =\u003e s.copyWith(textScaleFactor: 2.0, platformBrightness: Brightness.dark));\nawait c.reset();\n```\n\n`DevicePreview.controller` throws when simulation is off (every release build); use `DevicePreview.maybeController?.…` from code that ships.\n\nSee [`device_preview/README.md`](device_preview/README.md) for the full package documentation, including widget-test support via `DevicePreviewBindingMixin`.\n\n## Documentation\n\n\u003ca href='https://aloisdeniel.github.io/flutter_device_preview/' target='_blank'\u003eOpen the website\u003c/a\u003e · [Design document](DESIGN.md)\n\n## Repository structure\n\n| Directory | Contents |\n|---|---|\n| [`device_preview`](device_preview) | The published package: binding, controller, presets, service extensions, bundled DevTools extension build. |\n| [`device_preview_devtools_extension`](device_preview_devtools_extension) | Source of the DevTools extension web app (never published; built into `device_preview/extension/devtools/build`). |\n| [`device_specs`](device_specs) | The device catalog: one JSON per device — metrics, screen outline and body artwork. Generated into both the extension catalog and the package's built-in `DevicePresets`; see [its README](device_specs/README.md) to add a device. |\n| [`device_frame`](device_frame) | **Legacy** device frame drawings package from the 2.x era. Nothing in the 3.0 release depends on it — 3.0 renders frames from the [`device_specs`](device_specs) artwork, carried by the built-in presets and pushed over the DevTools protocol. |\n| [`docs`](docs) | The website, including its interactive demo — `docs/demo` is the counter example built for the web, `docs/device_catalog.json` the catalog its HTML panel pushes to it. Rebuild both with [`tool/build_demo.sh`](tool/build_demo.sh). |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faloisdeniel%2Fflutter_device_preview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faloisdeniel%2Fflutter_device_preview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faloisdeniel%2Fflutter_device_preview/lists"}