{"id":23138150,"url":"https://github.com/makjac/flutter_file_info","last_synced_at":"2026-02-10T09:34:13.255Z","repository":{"id":253191350,"uuid":"842112401","full_name":"makjac/flutter_file_info","owner":"makjac","description":"A Flutter plugin for retrieving detailed file metadata, including native icons assigned by file type.","archived":false,"fork":false,"pushed_at":"2025-02-14T04:50:15.000Z","size":576,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T01:03:00.423Z","etag":null,"topics":["android","dart","dart-ffi","flutter","flutter-plugin","kotlin","macos","swift","windows"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/flutter_file_info","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/makjac.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2024-08-13T17:37:55.000Z","updated_at":"2025-02-14T02:41:39.000Z","dependencies_parsed_at":"2024-09-18T05:12:25.873Z","dependency_job_id":"7434cf6c-d58c-4980-abdc-3952ce56391b","html_url":"https://github.com/makjac/flutter_file_info","commit_stats":null,"previous_names":["makjac/flutter_file_info"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makjac%2Fflutter_file_info","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makjac%2Fflutter_file_info/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makjac%2Fflutter_file_info/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makjac%2Fflutter_file_info/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/makjac","download_url":"https://codeload.github.com/makjac/flutter_file_info/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247157124,"owners_count":20893204,"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":["android","dart","dart-ffi","flutter","flutter-plugin","kotlin","macos","swift","windows"],"created_at":"2024-12-17T13:09:55.406Z","updated_at":"2026-02-10T09:34:13.205Z","avatar_url":"https://github.com/makjac.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"![header][header_image_url]\n\n[![Flutter Windows Tests][ci_badge]][ci_badge_link]\n[![pub package][pub_badge]][pub_badge_link]\n[![pub likes][pub_likes_badge]][pub_likes_link]\n[![License: MIT][license_badge]][license_badge_link]\n\n# flutter_file_info\n\nA Flutter plugin for retrieving detailed file metadata, including system-native file icons. You can retrieve the native icon assigned to a file based on its type, ensuring a consistent visual representation across platforms. Perfect for applications that require access to file details and icons.\n\n## Features\n\n* Access to native file icons.\n* Retrieval of detailed file metadata.\n\n## Compatibility Chart\n\n| API                   | Android            | iOS                | Linux              | macOS              | Windows            | Web                |\n| --------------------- | ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |\n| getFileIconInfo()     | :heavy_check_mark: | :heavy_check_mark: | :x:                | :heavy_check_mark: | :heavy_check_mark: | :x:                |\n| getFileInfo()         | :heavy_check_mark: | :heavy_check_mark: | :x:                | :heavy_check_mark: | :heavy_check_mark: | :x:                |\n\n## iOS Deployment Target\n\nThis plugin requires a minimum iOS deployment target of 13.0.\nEnsure that your project is configured correctly by following these steps:\n\n  1. **Update the `Podfile`**\n\n      In the `ios/Podfile` file, set the deployment target:\n\n      ```podfile\n      platform :ios, '13.0'\n      ```\n\n      After making this change, run:\n\n      ```bash\n      cd ios \u0026\u0026 pod install\n      ```\n\n  2. **Update Xcode Project Settings**\n\n      1. Open your project in Xcode (ios/Runner.xcworkspace).\n      2. Navigate to Runner → General.\n      3. In the Deployment Info section, set iOS Deployment Target to 13.0.\n\n  These steps ensure that your project is compatible with the required iOS version.\n\n## Getting Started\n\n### Usage\n\nQuick simple usage example:\n\n#### Get icon info\n\n```dart\nIconInfo? iconInfo = await FileInfo.instance.getFileIconInfo('path/to/example/file.txt');\n\nWidget _buildFileIcon() {\n    if (iconInfo == null) return const SizedBox.shrink();\n    return Image.memory(\n      iconInfo!.pixelData,\n      width: iconInfo!.width.toDouble(),\n      height: iconInfo!.height.toDouble(),\n    );\n  }\n```\n\n#### Get file info\n\n```dart\nFileMetadata? fileMetadata = await FileInfo.instance.getFileInfo('path/to/example/file.txt');\n\nif (fileMetadata != null) {\n    print(fileMetadata.fileName);                    // Output: file.txt\n    print(fileMetadata.fileExtension);               // Output: txt\n    print(fileMetadata.fileType);                    // Output: TextDocument\n    print(fileMetadata.creationTime?.toString());    // Output: 2024-08-01 17:16:26.500018\n    // ...\n}\n```\n\n## Screenshots\n\n### Windows\n\n![windows_example][windows_example_url]\n\n### MacOS\n\n![macos_example][macos_example_url]\n\n### iOS\n\n![ios_example][ios_example_url]\n\n### Android\n\n![android_example][android_example_url]\n\n## Contributing\n\nIf you would like to contribute to the development of this plugin, please fork the repository and submit a pull request. For detailed contribution guidelines, please refer to the CONTRIBUTING.md file.\n\n## License\n\nThis plugin is licensed under the [MIT License][mit_license_url].\n\n\u003c!-- end:excluded_rules_table --\u003e\n\n[ci_badge]: https://github.com/VeryGoodOpenSource/very_good_analysis/workflows/ci/badge.svg\n[ci_badge_link]: https://github.com/makjac/flutter_file_info/actions/workflows/windows.yml\n\n[license_badge]: https://img.shields.io/badge/license-MIT-blue.svg\n[license_badge_link]: https://opensource.org/licenses/MIT\n\n[pub_likes_badge]: https://img.shields.io/pub/likes/flutter_file_info\n[pub_likes_link]: https://pub.dev/packages/flutter_file_info\n\n[pub_badge]: https://img.shields.io/pub/v/flutter_file_info.svg\n[pub_badge_link]: https://pub.dev/packages/flutter_file_info\n\n[mit_license_url]: https://github.com/makjac/flutter_file_info/blob/main/LICENSE\n\n[header_image_url]: https://raw.githubusercontent.com/makjac/images/refs/heads/main/flutter_file_info/flutter_file_info_banner.png\n[windows_example_url]: https://raw.githubusercontent.com/makjac/images/refs/heads/main/flutter_file_info/file_info_win.gif\n[macos_example_url]: https://raw.githubusercontent.com/makjac/images/refs/heads/main/flutter_file_info/macos_flutter_file_info.gif\n[android_example_url]: https://raw.githubusercontent.com/makjac/images/refs/heads/main/flutter_file_info/flutter_file_info_android.gif\n[ios_example_url]: https://raw.githubusercontent.com/makjac/images/refs/heads/main/flutter_file_info/ios_flutter_file_info.gif\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakjac%2Fflutter_file_info","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmakjac%2Fflutter_file_info","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakjac%2Fflutter_file_info/lists"}