/
FilePicker

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

SL No

Widgets

Description

1

ElevatedButton()

Choose Files button

2

Text()

Button label / Action text

3

IconButton()

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

Related content

SelectFieldBuilder
SelectFieldBuilder
More like this
Document Uploader Service
Document Uploader Service
Read with this
AutoCompleteView
AutoCompleteView
More like this
ButtonGroup
Read with this
RadioButtonFieldBuilder
RadioButtonFieldBuilder
More like this
BottomButtonBar
BottomButtonBar
Read with this