Skip to content
pubscout

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.

Unverified publisher
$ flutter pub add disk_space_update
Source repository

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.

Works with

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