flutter_file_uploader library

Flutter widgets that simplify the creation and use of the en_file_uploader library.

They include both the UI and business logic for file upload management.

Classes

FileCard
An agnostic file upload widget.
FileUploadControllerConsumer
Consumer with FileUploadControllerModel
FileUploadControllerModel
The model that manages the upload state of a file. State is composed of:
FileUploadControllerProvider
ChangeNotifierProvider with FileUploadControllerModel
FileUploadControllerSelector<T>
Selector with FileUploadControllerModel
FileUploader
A button that handles file uploads.
FileUploaderConsumer
Consumer with FileUploaderModel.
FileUploaderModel
The model that manages file uploads and removals.
FileUploaderRef
A reference to FileUploaderModel for those who want to manage file uploads
FileUploaderSelector<T>
Selector with FileUploaderModel.
ProvidedFileCard
Apply FileUploadControllerProvider and FileUploadControllerConsumer to FileCard.

Enums

FileUploadStatus
The various states of the upload

Typedefs

FileUploaderBuilderCallback = Widget Function(BuildContext context, FileUploaderRef controller)
builder, more on FileUploader
OnFileAdded = Future<IFileUploadHandler> Function(XFile file)
on file added, more on FileUploader
OnFileRemoved = void Function(FileUploadResult file)
on file removed, more on FileUploader
OnFileUploaded = void Function(FileUploadResult file)
on file uploaded, more on FileUploader
OnPressedAddFilesCallback = Future<List<XFile>> Function()
on pressed add files, more on FileUploader