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 : punjab-mgramseva/frontend/mgramseva/lib/widgets/FilePicker.dart at master ยท misdwss/punjab-mgramseva