{"id":15748083,"url":"https://github.com/prongbang/flutter_filex","last_synced_at":"2025-03-31T06:42:41.619Z","repository":{"id":56829416,"uuid":"409587754","full_name":"prongbang/flutter_filex","owner":"prongbang","description":"A simple read \u0026 write file","archived":false,"fork":false,"pushed_at":"2022-03-15T08:48:58.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T22:52:04.488Z","etag":null,"topics":["flutter-read-file","flutter-write-file","read-file","write-file"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/flutter_filex","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/prongbang.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}},"created_at":"2021-09-23T12:43:29.000Z","updated_at":"2022-03-07T13:17:51.000Z","dependencies_parsed_at":"2022-08-29T00:20:23.679Z","dependency_job_id":null,"html_url":"https://github.com/prongbang/flutter_filex","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prongbang%2Fflutter_filex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prongbang%2Fflutter_filex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prongbang%2Fflutter_filex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prongbang%2Fflutter_filex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prongbang","download_url":"https://codeload.github.com/prongbang/flutter_filex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246429448,"owners_count":20775805,"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":["flutter-read-file","flutter-write-file","read-file","write-file"],"created_at":"2024-10-04T05:40:33.070Z","updated_at":"2025-03-31T06:42:41.569Z","avatar_url":"https://github.com/prongbang.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flutter_filex\n\nA simple Read \u0026 Write file.\n\n## Features\n\n- Read \u0026 Write file\n\n## Usage\n\n```dart\nfinal directoryUtility = TemporaryDirectoryUtility();\nfinal directoryUtility = ApplicationDocumentsDirectoryUtility();\nfinal directoryUtility = LibraryDirectoryUtility();\nfinal directoryUtility = ApplicationSupportDirectoryUtility();\nfinal directoryUtility = ExternalStorageDirectoryUtility();\nfinal directoryUtility = DownloadsDirectoryUtility();\n\nfinal fileXUtility = FileXProvider.create(directoryUtility);\n\nfinal fileX = FileX(\n  prefix: 'filex-',\n  filename: '1',\n  extension: FileX.png,\n);\n\n// Read bytes\nUint8List contentByte = await fileXUtility.readAsBytes(fileX);\n\n// Read string\nString contentString = await fileXUtility.readAsString(fileX);\n\n// Write bytes\nString path1 = await fileXUtility.write(fileX..bytes = Uint8List.fromList([1, 0, 1]));\n\n// Write base64\nString path2 = await fileXUtility.write(fileX..base64 = 'ZmlsZXg=');\n\n// Convert to File\nFile file = await fileXUtility.toFile(fileX);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprongbang%2Fflutter_filex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprongbang%2Fflutter_filex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprongbang%2Fflutter_filex/lists"}