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.
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.
- disk_space_plus
Get free and total disk space in megabytes on Android and iOS.
77Compare - storage_space
Get device storage space and app-specific storage usage with readable sizes.
78Compare - disk_space
A tiny Flutter plugin to show free and total disk space.
42Compare - security_plus
Detect root, jailbreak, emulators, and device security threats in Flutter apps.
67Compare
Works with
Packages commonly used together with storage_info: ones it builds on, ones built on it, and its own family.