FilePicker
FilePicker allows you to use the native file explorer to pick single or multiple files, with extensions filtering support.
Plugin used
file_picker
: ^4.0.0
image_picker
: ^0.8.4
path
: ^1.8.0
Features
_selectedFiles
: Contains the List of files selected to attach_multiPick
: If_multiPick
is true, we can select multiple files_picker
: Helps user to capture image from camera and upload it_pickingType
: Determines the type of file picked (For eg. .jpg, .png, .pdf)
Widgets used from Flutter Material Library
SL No | Widgets | Description |
---|---|---|
1 |
| Choose Files button |
2 |
| Button label / Action text |
3 |
| Icons like add or cancel upload of files |
Files Path :
Primary Files : https://github.com/misdwss/punjab-mgramseva/blob/master/frontend/mgramseva/lib/widgets/FilePicker.dart