storage_capacity 0.0.7 copy "storage_capacity: ^0.0.7" to clipboard
storage_capacity: ^0.0.7 copied to clipboard

A package facilitates the use of storage capacity. Taking free space, occupied space, total space and device capacity.

Storage Capacity #

Package created to facilitate the manipulation of storage space on Android and IOS. Informing the space available for use, the space occupied, the total storage space, conversion facilities to MB and GB. And ease to discover the device's GB capacity

Usage #

Free Space #

    var freeSpace = await StorageCapacity.getFreeSpace;
copied to clipboard

Occupied Space #

    var occupiedSpace = await StorageCapacity.getOccupiedSpace;
copied to clipboard

Total Space #

    var totalSpace = await StorageCapacity.getTotalSpace;
copied to clipboard

Conversions #

    StorageCapacity.toGigaBytes(double.parse(totalSpace.toString()));
    StorageCapacity.toMegaBytes(double.parse(totalSpace.toString()));
copied to clipboard

Search Capacity #

    dynamic totalSpace = await StorageCapacity.getTotalSpace;
    totalSpace = StorageCapacity.toGigaBytes(double.parse(totalSpace.toString()));
    totalSpace = StorageCapacity.searchCapacity(double.parse(totalSpace));
copied to clipboard
2
likes
40
points
39
downloads

Publisher

verified publisherkomus.io

Weekly Downloads

2024.09.09 - 2025.03.24

A package facilitates the use of storage capacity. Taking free space, occupied space, total space and device capacity.

Homepage
Repository (GitHub)

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on storage_capacity