{"id":28402002,"url":"https://github.com/flutter-form-builder-ecosystem/form_builder_file_picker","last_synced_at":"2026-02-02T17:24:44.878Z","repository":{"id":36468181,"uuid":"226392154","full_name":"flutter-form-builder-ecosystem/form_builder_file_picker","owner":"flutter-form-builder-ecosystem","description":"File picker field widget for FlutterFormBuilder.","archived":false,"fork":false,"pushed_at":"2025-05-28T01:12:06.000Z","size":531,"stargazers_count":16,"open_issues_count":8,"forks_count":35,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-06-05T07:31:37.215Z","etag":null,"topics":["dart","file","flutter","flutter-form-builder","form"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/form_builder_file_picker","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flutter-form-builder-ecosystem.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},"funding":{"open_collective":"flutter-form-builder-ecosystem"}},"created_at":"2019-12-06T19:04:38.000Z","updated_at":"2025-05-21T17:11:18.000Z","dependencies_parsed_at":"2023-01-17T01:46:09.474Z","dependency_job_id":"42aa8750-49d5-47b5-bd2a-bb7697965fbd","html_url":"https://github.com/flutter-form-builder-ecosystem/form_builder_file_picker","commit_stats":{"total_commits":128,"total_committers":13,"mean_commits":9.846153846153847,"dds":0.515625,"last_synced_commit":"079fb01b4f570736699ba22deaf186e3c3e5b94b"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/flutter-form-builder-ecosystem/form_builder_file_picker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flutter-form-builder-ecosystem%2Fform_builder_file_picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flutter-form-builder-ecosystem%2Fform_builder_file_picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flutter-form-builder-ecosystem%2Fform_builder_file_picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flutter-form-builder-ecosystem%2Fform_builder_file_picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flutter-form-builder-ecosystem","download_url":"https://codeload.github.com/flutter-form-builder-ecosystem/form_builder_file_picker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flutter-form-builder-ecosystem%2Fform_builder_file_picker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259770025,"owners_count":22908373,"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":["dart","file","flutter","flutter-form-builder","form"],"created_at":"2025-06-01T14:36:12.174Z","updated_at":"2026-02-02T17:24:44.872Z","avatar_url":"https://github.com/flutter-form-builder-ecosystem.png","language":"C++","funding_links":["https://opencollective.com/flutter-form-builder-ecosystem"],"categories":[],"sub_categories":[],"readme":"# Form Builder File Picker\n\nFile Picker Field for [flutter_form_builder](https://pub.dev/packages/flutter_form_builder) package\n\n[![Pub Version](https://img.shields.io/pub/v/form_builder_file_picker?logo=flutter\u0026style=for-the-badge)](https://pub.dev/packages/form_builder_file_picker)\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/flutter-form-builder-ecosystem/form_builder_file_picker/base.yaml?branch=main\u0026logo=github\u0026style=for-the-badge)](https://github.com/flutter-form-builder-ecosystem/form_builder_file_picker/actions/workflows/base.yaml)\n[![CodeFactor Grade](https://img.shields.io/codefactor/grade/github/flutter-form-builder-ecosystem/form_builder_file_picker?logo=codefactor\u0026style=for-the-badge)](https://www.codefactor.io/repository/github/flutter-form-builder-ecosystem/form_builder_file_picker)\n___\n\n- [Features](#features)\n- [Use](#use)\n  - [Setup](#setup)\n  - [Basic use](#basic-use)\n  - [Specific uses](#specific-uses)\n- [Support](#support)\n  - [Contribute](#contribute)\n  - [Questions and answers](#questions-and-answers)\n  - [Donations](#donations)\n- [Roadmap](#roadmap)\n- [Ecosystem](#ecosystem)\n- [Thanks to](#thanks-to)\n\n## Features\n\n- Automatic handle permissions\n- Show images preview\n\n## Use\n\n### Setup\n\nSince this package makes use of [file_picker](https://pub.dev/packages/file_picker) package, for platform specific setup follow [this instructions](https://github.com/miguelpruivo/flutter_file_picker/wiki/Setup)\n\n### Basic use\n\n```dart\n import 'package:flutter_form_builder/flutter_form_builder.dart';\n import 'package:form_builder_file_picker/form_builder_file_picker.dart';\n\n  FormBuilderFilePicker(\n    name: \"images\",\n    decoration: InputDecoration(labelText: \"Attachments\"),\n    maxFiles: null,\n    previewImages: true,\n    onChanged: (val) =\u003e print(val),\n    typeSelectors: [\n      TypeSelector(\n        type: FileType.any,\n        selector: Row(\n          children: \u003cWidget\u003e[\n            Icon(Icons.add_circle),\n            Padding(\n              padding: const EdgeInsets.only(left: 8.0),\n              child: Text(\"Add documents\"),\n            ),\n          ],\n        ),\n      ),\n    ],\n    onFileLoading: (val) {\n      print(val);\n    },\n  ),\n```\n\n### Specific uses\n\nOn mobile platforms the file picker will open a default document picker if used with `FileType.any`.\nIf you want to be able to pick documents and images in the same form field, you will need to define different file types and different selectors. To achieve this use the `typeSelectors` parameter.\nThis way the user will see two buttons to open a file picker for documents and a file picker for the photos gallery.\n\nFor example:\n\n```dart\nFormBuilderFilePicker(\n  name: \"attachments\",\n  previewImages: false,\n  allowMultiple: true,\n  withData: true,\n  typeSelectors: [\n    TypeSelector(\n      type: FileType.any,\n      selector: Row(\n        children: \u003cWidget\u003e[\n          Icon(Icons.add_circle),\n          Padding(\n            padding: const EdgeInsets.only(left: 8.0),\n            child: Text(\"Add documents\"),\n          ),\n        ],\n      ),\n    ),\n    if (!kIsWeb)\n      TypeSelector(\n        type: FileType.image,\n        selector: Row(\n          children: \u003cWidget\u003e[\n            Icon(Icons.add_photo_alternate),\n            Padding(\n              padding: const EdgeInsets.only(left: 8.0),\n              child: Text(\"Add images\"),\n            ),\n          ],\n        ),\n      ),\n    ],\n  )\n```\n\n## Support\n\n### Contribute\n\nYou have some ways to contribute to this packages\n\n- Beginner: Reporting bugs or request new features\n- Intermediate: Implement new features (from issues or not) and created pull requests\n- Advanced: Join the [organization](#ecosystem) like a member and help coding, manage issues, dicuss new features and other things\n\n See [contribution guide](https://github.com/flutter-form-builder-ecosystem/.github/blob/main/CONTRIBUTING.md) for more details\n\n### Questions and answers\n\nYou can question or search answers on [Github discussion](https://github.com/flutter-form-builder-ecosystem/form_builder_file_picker/discussions) or on [StackOverflow](https://stackoverflow.com/questions/tagged/flutter-form-builder)\n\n### Donations\n\nDonate or become a sponsor of Flutter Form Builder Ecosystem\n\n[![Become a Sponsor](https://opencollective.com/flutter-form-builder-ecosystem/tiers/sponsor.svg?avatarHeight=56)](https://opencollective.com/flutter-form-builder-ecosystem)\n\n## Roadmap\n\n- [Add visual examples](https://github.com/flutter-form-builder-ecosystem/form_builder_file_picker/issues/37) (images, gifs, videos, sample application)\n- [Solve open issues](https://github.com/flutter-form-builder-ecosystem/form_builder_file_picker/issues), [prioritizing bugs](https://github.com/flutter-form-builder-ecosystem/form_builder_file_picker/labels/bug)\n\n## Ecosystem\n\nTake a look to [our awesome ecosystem](https://github.com/flutter-form-builder-ecosystem) and all packages in there\n\n## Thanks to\n\n[All constributors](https://github.com/flutter-form-builder-ecosystem/form_builder_file_picker/graphs/contributors)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflutter-form-builder-ecosystem%2Fform_builder_file_picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflutter-form-builder-ecosystem%2Fform_builder_file_picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflutter-form-builder-ecosystem%2Fform_builder_file_picker/lists"}