{"id":19422845,"url":"https://github.com/dutchcodingcompany/file_preview","last_synced_at":"2025-07-20T02:09:14.642Z","repository":{"id":40302314,"uuid":"448826993","full_name":"DutchCodingCompany/file_preview","owner":"DutchCodingCompany","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-16T10:16:32.000Z","size":584,"stargazers_count":3,"open_issues_count":6,"forks_count":18,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-20T10:26:06.345Z","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/DutchCodingCompany.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":"2022-01-17T09:20:22.000Z","updated_at":"2024-08-16T10:07:53.000Z","dependencies_parsed_at":"2024-03-01T13:55:22.049Z","dependency_job_id":null,"html_url":"https://github.com/DutchCodingCompany/file_preview","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DutchCodingCompany%2Ffile_preview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DutchCodingCompany%2Ffile_preview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DutchCodingCompany%2Ffile_preview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DutchCodingCompany%2Ffile_preview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DutchCodingCompany","download_url":"https://codeload.github.com/DutchCodingCompany/file_preview/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250654496,"owners_count":21465893,"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":[],"created_at":"2024-11-10T13:35:29.383Z","updated_at":"2025-04-24T15:32:25.862Z","avatar_url":"https://github.com/DutchCodingCompany.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# file_previewer\n\nCan generate an preview image based on the file extension. Uses the native files previewer on iOS.\n\n## Getting Started\n\nGenerate a preview Widget by calling `await FilePreview.getThumbnail(file.path)`.\n\n* An image file\n\n\u003cimg src=\"https://raw.githubusercontent.com/DutchCodingCompany/file_preview/7d8f6ce6ddd27befc4506c077592ff55d56c63e6/images/screenshot1.png\" height=\"800\"\u003e\n\n* A pdf file\n\n\u003cimg src=\"https://raw.githubusercontent.com/DutchCodingCompany/file_preview/7d8f6ce6ddd27befc4506c077592ff55d56c63e6/images/screenshot2.png\" height=\"800\"\u003e\n\n* A pdf file where a preview cannot be rendered\n\n\u003cimg src=\"https://raw.githubusercontent.com/DutchCodingCompany/file_preview/7d8f6ce6ddd27befc4506c077592ff55d56c63e6/images/screenshot3.png\" height=\"800\"\u003e\n\n## Usage\n\n```dart\nfinal File file = await FilePicker.getFile();\ntry {\n    final thumbnail = await FilePreview.getThumbnail(file.path);\n    setState(() {\n        image = thumbnail;\n    });\n} catch (e) {\n    image = Image.asset(\"\");\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdutchcodingcompany%2Ffile_preview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdutchcodingcompany%2Ffile_preview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdutchcodingcompany%2Ffile_preview/lists"}