{"id":27596319,"url":"https://github.com/easazade/font_preview","last_synced_at":"2026-01-11T04:37:25.061Z","repository":{"id":65204773,"uuid":"587262563","full_name":"easazade/font_preview","owner":"easazade","description":"ont_preview is a helper package to inspect, compare \u0026 preview fonts that are being used in you Flutter app.","archived":false,"fork":false,"pushed_at":"2023-05-08T07:12:55.000Z","size":3798,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-22T12:52:49.468Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/easazade.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":"2023-01-10T10:45:22.000Z","updated_at":"2024-09-15T14:21:52.000Z","dependencies_parsed_at":"2025-04-22T12:45:42.288Z","dependency_job_id":"90273e5e-e95b-4b67-962d-33bee78cb125","html_url":"https://github.com/easazade/font_preview","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/easazade/font_preview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easazade%2Ffont_preview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easazade%2Ffont_preview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easazade%2Ffont_preview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easazade%2Ffont_preview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/easazade","download_url":"https://codeload.github.com/easazade/font_preview/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easazade%2Ffont_preview/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28284964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T03:48:11.750Z","status":"ssl_error","status_checked_at":"2026-01-11T03:48:02.765Z","response_time":60,"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":"2025-04-22T12:44:32.799Z","updated_at":"2026-01-11T04:37:25.047Z","avatar_url":"https://github.com/easazade.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"### What is it?\nfont_preview is a helper package to inspect, compare \u0026 preview fonts that are being used in you Flutter app.\n\n\u003cimg src=\"https://user-images.githubusercontent.com/38987302/211730377-a6820e24-f995-4528-a30b-a93925323f20.png\" width=\"200\"\u003e \u003cimg src=\"https://user-images.githubusercontent.com/38987302/211730436-957e0686-6da3-4144-8549-462071a2b233.png\" width=\"200\"\u003e \u003cimg src=\"https://user-images.githubusercontent.com/38987302/211730519-a8028096-da2c-467e-9574-b34d6b263fa1.png\" width=\"200\"\u003e\n\n### When do you need it?\n\n- When you want to make sure youre custom font is loaded and being used\n- When you're using [google_font](https://pub.dev/packages/google_fonts) and you want to make sure the font you're using is downloaded and being used\n\nNOTE: `font_preview` uses `BungeeShade-Regular` as the fallback font so if your font is not loaded on your texts, they will look like this. \n\u003cimg src=\"https://user-images.githubusercontent.com/38987302/211726606-43de100f-4117-4fed-adc6-adb3b19bf7d0.png\" width=\"200\"\u003e\nthis way you can easily recognize this issue.\n\n- when you simply need to see how the font looks like across different font-weights and font-styles \n- when you want to compare fonts together\n- when you need to make sure all font-weights and font-styles for your custom font are loaded correctly. \n- when you want to check for faux styles. for example whether flutter is using a faux bold for w700 font weight or the font you specified.\n\n\n\n\n### How to use it?\n\nAdd it as a `dev_dependency`\n\n```yaml\ndev_dependencies:\n  font_preview: $latest-version\n```\n\nRun the following code. it will navigates to a new screen to preview the fonts\n\n```dart\nFontPreview.previewFonts(\n  context,\n  previewText: 'Flutter is Great',\n  fonts: [\n    // if you have custom fonts in your assets you can use its \n    // font family name\n    FontProvider.fromFontFamily('Ubuntu'),\n  ],\n);\n```\n\nYou can provide multiple fonts and compare them side by side for each font-weight and font-style\n\n\n```dart\nFontPreview.previewFonts(\n  context,\n  previewText: 'Flutter is Great',\n  fonts: [\n    FontProvider.fromFontFamily('Ubuntu'),    \n\n    // If you are using google_fonts package for loading fonts \n    // provide your fonts for previewing like this\n    FontProvider.fromBuilder(\n      (fontSize, fontWeight, fontStyle) =\u003e GoogleFonts.raleway(\n        fontSize: fontSize,\n        fontStyle: fontStyle,\n        fontWeight: fontWeight,\n      ),\n    ),\n\n    FontProvider.fromBuilder(\n      (fontSize, fontWeight, fontStyle) =\u003e GoogleFonts.roboto(\n        fontSize: fontSize,\n        fontStyle: fontStyle,\n        fontWeight: fontWeight,\n      ),\n    ),\n\n  ],\n  fontStyles: [FontStyle.normal],\n);\n```\n\n\nAnd you can specify what styles, weights \u0026 sizes you want your font to be previewed in\n\n```dart\nFontPreview.previewFonts(\n  context,\n  previewText: 'Flutter is Great',\n  fonts: [\n    FontProvider.fromFontFamily('Ubuntu'),\n  ],\n  fontStyles: [FontStyle.normal],\n  fontWeights: [FontWeight.w400, FontWeight.w700],\n  previewSizes: [11.0, 12.0, 14.0, 16.0, 18.0, 22.0],\n);\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasazade%2Ffont_preview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feasazade%2Ffont_preview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasazade%2Ffont_preview/lists"}