disk_space_update
0.0.3, released 2 years ago by an unverified publisher
Display free and total disk space on Android and iOS devices.
What it does
It is a Flutter plugin that allows applications to query free and total disk space on the device, as well as free space for specific directory paths.
AI-written summary of version 0.0.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to check available storage space before downloading large files.
- You want to display device disk space information to the user.
Skip it when
- you need to support platforms other than Android and iOS.
- you need advanced file management or database storage features.
Strengths
- Simple API to fetch total and free disk space.
- Supports specific directory paths like application documents or external storage.
Weaknesses
- Only supports Android and iOS platforms.
- Limited feature set focusing strictly on disk space querying.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Not documented
Future<void> initDiskSpace() async {
double diskSpace = await DiskSpace.getFreeDiskSpace ?? 0;
var space = await DiskSpace.getFreeDiskSpaceForPath(directory.path) ?? 0;
}Alternatives
Packages that do the same job and could replace disk_space_update.
- disk_space_plus
Get free and total disk space in megabytes on Android and iOS.
77Compare - in_app_update
Triggers official Google Play In-App Updates on Android devices.
81Compare - 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
Works with
Packages commonly used together with disk_space_update: ones it builds on, ones built on it, and its own family.