cloud_storage library

Cloud file/folder storage for Flutter.

Umbrella package: re-exports the platform interface plus the default Firebase implementation, and provides a defaultCloudStorage factory.

Classes

BytesSource
CloudFile
CloudFolder
A URL bookmark. Rendered as an entry in the folder grid alongside files and folders, but the payload is just a url — no storage bytes. Tapping a link opens the URL in an external browser / app.
CloudNode
A node in the cloud storage tree — either a CloudFolder or a CloudFile.
CloudStorage
Backend-agnostic contract for cloud file/folder storage.
FileSource
FirebaseCloudStorage
Firebase implementation of CloudStorage.
Source
The bytes to upload. Use one of the concrete subtypes: FileSource, BytesSource, or XFileSource.
UploadProgress
UploadTask
Handle to an in-flight upload.
XFileSource

Enums

UploadStatus

Constants

kRootFolderId → const String
Sentinel used by CloudStorage APIs to refer to the user's root folder.

Functions

defaultCloudStorage({required String firestorePath, required String storagePath}) CloudStorage
Convenience factory for the default backend (Firebase).