Features of file picker
- It uses operating system default native picker : This file picker invoke native file picker and get information of user selected file. Thus, we can see OS specific UI in this file picker package.
- Filter different types of files : If you want only a specific type of file (e.g. PDF, JPG, SVG etc), you can set this file extensions as an argument and file picker will show user the requested file types, nothing else.
- Pick files from cloud files : This extension allow you to pick files not only from your device, but also from cloud storage like Google Drive, Dropbox, iCloud etc.
- Single or multiple : You can allow user to select single or multiple file at once. This is up to you, as a developer you have the freedom to decide what you want in your application.
- Read file : This file picker extension can read the selected file and load it in the memory as a Uint8List. This will be very handy if you want to upload this file somewhere, or you want to manipulate it as your own way.
So the possibility is endless. It is up to you as a developer that what you choose and what you leave. Before make that decision, let's see how to implement all these feature in code. Let's open our code editor and make a new flutter project.