storage_space 1.0.0 copy "storage_space: ^1.0.0" to clipboard
storage_space: ^1.0.0 copied to clipboard

outdated

Get the free, available and total storage space for the device. Utility helpers for readable sizes

Storage Space #

Get the free, available and total storage space for the device.

There is a utility helper for human-readable sizes.

Usage #

StorageSpace freeSpace = await getStorageSpace(
  lowOnSpaceThreshold: 2 * 1024 * 1024 * 1024, // 2GB
  fractionDigits: 1, // How many digits to use for the human-readable values
);

Example #

The example directory shows how to use StorageSpace package to render a "progress meter" that renders a warning when the device is low on space

Background #

This package is a reworking of three packages:

The end result is a simple package that is null-safe and can be easily maintained.

20
likes
0
points
7.55k
downloads

Publisher

verified publisheroodavid.com

Weekly Downloads

Get the free, available and total storage space for the device. Utility helpers for readable sizes

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on storage_space