You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File Picker Field for [flutter_form_builder](https://pub.dev/packages/flutter_form_builder) package
12
+
-[Features](#features)
13
+
-[Use](#use)
14
+
-[Setup](#setup)
15
+
-[Basic use](#basic-use)
16
+
-[Especific uses](#especific-uses)
17
+
-[Support](#support)
18
+
-[Contribute](#contribute)
19
+
-[Questions and answers](#questions-and-answers)
20
+
-[Donations](#donations)
21
+
-[Roadmap](#roadmap)
22
+
-[Ecosystem](#ecosystem)
23
+
-[Thanks to](#thanks-to)
24
+
-[Contributors](#contributors)
25
+
26
+
## Features
27
+
28
+
- Automatic handle permissions
29
+
- Show images preview
9
30
10
-
#Setup
31
+
## Use
11
32
12
-
Since this package makes use of [file_picker package](https://pub.dev/packages/file_picker), for platform specific setup, follow the instructions [here](https://github.com/miguelpruivo/flutter_file_picker/wiki/Setup)
33
+
### Setup
13
34
14
-
# Usage
35
+
Since 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)
@@ -23,21 +46,30 @@ Since this package makes use of [file_picker package](https://pub.dev/packages/f
23
46
maxFiles: null,
24
47
previewImages: true,
25
48
onChanged: (val) => print(val),
26
-
selector: Row(
27
-
children: <Widget>[
28
-
Icon(Icons.file_upload),
29
-
Text('Upload'),
30
-
],
31
-
),
49
+
typeSelectors: [
50
+
TypeSelector(
51
+
type: FileType.any,
52
+
selector: Row(
53
+
children: <Widget>[
54
+
Icon(Icons.add_circle),
55
+
Padding(
56
+
padding: const EdgeInsets.only(left: 8.0),
57
+
child: Text("Add documents"),
58
+
),
59
+
],
60
+
),
61
+
),
62
+
],
32
63
onFileLoading: (val) {
33
64
print(val);
34
65
},
35
66
),
36
67
```
37
68
38
-
On mobile platforms the file picker will open a default document picker if used with FileType.any.
39
-
If you want to be able to pick documents and images in the same form field you will need to define
40
-
different file types and thus different selectors. To achieve this use the typeSelectors parameter:
69
+
### Especific uses
70
+
71
+
On mobile platforms the file picker will open a default document picker if used with `FileType.any`.
72
+
If you want to be able to pick documents and images in the same form field, you will need to define different file types and thus different selectors. To achieve this use the `typeSelectors` parameter.
41
73
This way the user will see two buttons to open a file picker for documents and a file picker for the photos
42
74
gallery.
43
75
@@ -79,7 +111,40 @@ FormBuilderFilePicker(
79
111
)
80
112
```
81
113
82
-
## Credits
114
+
## Support
115
+
116
+
### Contribute
117
+
118
+
You have some ways to contribute to this packages
119
+
120
+
- Beginner: Reporting bugs or request new features
121
+
- Intermediate: Implement new features (from issues or not) and created pull requests
122
+
- Advanced: Join to [organization](#ecosystem) like a member and help coding, manage issues, dicuss new features and other things
123
+
124
+
See [contribution file](https://github.com/flutter-form-builder-ecosystem/.github/blob/main/CONTRIBUTING.md) for more details
125
+
126
+
### Questions and answers
127
+
128
+
You can join to [our Discord server](https://discord.gg/25KNPMJQf2) or search answers in [StackOverflow](https://stackoverflow.com/questions/tagged/flutter-form-builder)
129
+
130
+
### Donations
131
+
132
+
Buy a coffe to [Danvick Miller](https://twitter.com/danvickmiller), creator of this awesome package
133
+
134
+
[](https://www.buymeacoffee.com/danvick)
-[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)
140
+
141
+
## Ecosystem
142
+
143
+
Take a look to [our awesome ecosystem](https://github.com/flutter-form-builder-ecosystem) and all packages in there
0 commit comments