Skip to content
pubscout

storage_info

2.0.0, released 3 months ago by an unverified publisher

Get free, used and total disk space for internal and external storage.

WASM-ready
$ flutter pub add storage_info
Source repository

What it does

Provides methods to retrieve the total, free, and used internal and external storage space in various units like bytes, KB, MB, and GB. Supports both Android and iOS platforms.

AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to check available device storage before downloading large files or caching data.
  • You want to display storage statistics to the user within your app settings.

Skip it when

  • You need to persist key-value data or structured databases locally.
  • You require storage information for desktop or web platforms.

Strengths

  • Supports multiple units of measurement (bytes, KB, MB, GB).
  • Supports both internal storage and external SD cards (on Android).
  • Simple API with a single initialization point.

Weaknesses

  • Limited platform support (only Android and iOS).
  • External storage features are limited to Android only.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
1

No extra permissions documented in the README; follow standard Flutter plugin integration.

final _storageInfoPlugin = StorageInfo();
Future<double> _getSpace() async {
  return await _storageInfoPlugin.getStorageFreeSpace(SpaceUnit.GB);
}

Alternatives

Packages that do the same job and could replace storage_info.

Works with

Packages commonly used together with storage_info: ones it builds on, ones built on it, and its own family.